question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometimes got UNAVAILABLE status from rpc server?

See original GitHub issue

Problem description

here is error log:

Error: 14 UNAVAILABLE: Stream refused by server
    at Object.callErrorFromStatus (/usr/src/app/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/usr/src/app/node_modules/@grpc/grpc-js/build/src/client.js:176:52)
    at Object.onReceiveStatus (/usr/src/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141)
    at Object.onReceiveStatus (/usr/src/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
    at /usr/src/app/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

this error will occur 3 or more times a day

Environment

  • OS name [Ubuntu 20.04 amd64]
  • Node version [v14.16.1]
  • Package name and version [“@grpc/grpc-js”: “^1.3.0”]

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
murgatroid99commented, Nov 1, 2021

@blastshielddown That is a completely different error from the one at the start of this issue. The original error “Stream refused by server” means that the client sent the request to the server, and the server refused to handle the request. Your error “No connection established” means that the client failed to ever establish a connection to the server in the first place. There are any number of reasons that a client might fail to connect to a server: the DNS name could be wrong, or the DNS entry could be wrong, or the server might not be running yet, or the network doesn’t have a path to the server, etc.

If you run your code with the environment variables GRPC_TRACE=all and GRPC_VERBOSITY=DEBUG, the log output should have more information about why it is failing to connect.

0reactions
blastshielddowncommented, Nov 1, 2021

Thanks for clarifying @murgatroid99 and apologies for conflating the issues inaccurately. The logging is helping shed more light on the problem. I’ll open a separate issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix "The RPC Server is Unavailable" Error in Windows
To check your network connection: 1) Press the Windows logo key and R on your keyboard to open the Run dialog.
Read more >
Windows Server Troubleshooting: RPC server is unavailable
This error message may occur if the File and Printer Sharing for Microsoft Networks component is not enabled on the remote computer.
Read more >
Fixed: The RPC Server Is Unavailable In Windows
When you get an error message saying the RPC Server is unavailable, it could mean that the service itself is stopped.
Read more >
Troubleshooting 'RPC server is unavailable' error in WIndows
A third-party firewall or any other security application running on a server, or on a client, might sometimes block the traffic from reaching ......
Read more >
Fixing “The RPC Server is Unavailable” error in Windows
Method 1: Making Sure that the RPC Services are Properly Functioning · Method 2: Configuring the Firewall · Method 3: Checking your Network ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found