Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On slow Internet connection, node process exists before response returned by gRPC #1579

Closed
bcoe opened this issue Sep 17, 2020 · 1 comment · Fixed by #1580
Closed

On slow Internet connection, node process exists before response returned by gRPC #1579

bcoe opened this issue Sep 17, 2020 · 1 comment · Fixed by #1580

Comments

@bcoe
Copy link
Contributor

bcoe commented Sep 17, 2020

Problem description

On a slow internet connection, I am finding that a script that performs a gRPC procedure call exits before receiving a response.

Reproduction steps

The script I am running looks like this:

  const {WorkflowsClient} = require('@google-cloud/workflows');
  const client = new WorkflowsClient();
  async function listWorkflows() {
    const [workflows] = await client.listWorkflows({
      parent: client.locationPath(projectId, location),
    });
    for (const workflow of workflows) {
      console.info(`name: ${workflow.name}`);
    }
  }
  listWorkflows();

On a slow connection, we sometimes exit before console.info(name: ${workflow.name}); is hit.

Environment

  • OS name, version and architecture: Mac OS X 10.15.6
  • Node version: v12.18.3.
  • Node installation method: nvm
  • If applicable, compiler version: n/a
  • Package name and version: @grpc/grpc-js@1.1.6.
@murgatroid99
Copy link
Member

This should be fixed in 1.1.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants