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

feat: add ECONNREFUSED to list of known errors for isAvailable() #309

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Mar 3, 2020

Add ECONNREFUSED to our list of known errors.

see: #302, googleapis/nodejs-logging-winston#389

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 3, 2020
@@ -203,6 +203,7 @@ export async function isAvailable() {
'ENETUNREACH',
'ENOENT',
'ENOTFOUND',
'ECONNREFUSED',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a complete list of these somewhere? Or are there specific ones we're trying to avoid? Wondering if we just keep adding things to this list as people report them, or if there's a better way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like I tried to dig into this once before without much success, can dig around again.

@bcoe bcoe merged commit 17ff6ea into master Mar 3, 2020
@bcoe bcoe deleted the fix-302 branch March 3, 2020 22:01
gcf-merge-on-green bot pushed a commit that referenced this pull request Mar 3, 2020
🤖 I have created a release \*beep\* \*boop\* 
---
## [3.5.0](https://www.github.com/googleapis/gcp-metadata/compare/v3.4.0...v3.5.0) (2020-03-03)


### Features

* add ECONNREFUSED to list of known errors for isAvailable() ([#309](https://www.github.com/googleapis/gcp-metadata/issues/309)) ([17ff6ea](https://www.github.com/googleapis/gcp-metadata/commit/17ff6ea361d02de31463532d4ab4040bf6276e0b))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants