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

Report Node.js ETIMEDOUT as code Unavailable #686

Merged

Conversation

akosyakov
Copy link
Contributor

@akosyakov akosyakov commented Jun 22, 2023

I tried to create a test, but could not figure out how to trigger. It seems to happen when tcp connection cannot be established.

@CLAassistant
Copy link

CLAassistant commented Jun 22, 2023

CLA assistant check
All committers have signed the CLA.

@timostamm timostamm changed the title fix 682: report ETIMEDOUT as unavailable Report Node.js ETIMEDOUT as code Unavailable Jun 22, 2023
Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not been able to trigger this error either.

Code unavailable means:

The service is currently unavailable, usually transiently. Clients should back off and retry idempotent operations.

Node.js documents:

ETIMEDOUT (Operation timed out): A connect or send request failed because the connected party did not properly respond after a period of time.

This is reasonable to map. Thanks for the contribution!

Browserstack CI failure is expected on a fork. The code does not touch @bufbuild/connect-web.

@timostamm timostamm merged commit 4df67c9 into connectrpc:main Jun 22, 2023
@smaye81 smaye81 mentioned this pull request Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants