8000 Handled error on get and post requests by ishaanbahal · Pull Request #2 · HashGo/node-datadog · GitHub
[go: up one dir, main page]

Skip to content

Handled error on get and post requests#2

Open
ishaanbahal wants to merge 2 commits intoHashGo:masterfrom
ishaanbahal:master
Open

Handled error on get and post requests#2
ishaanbahal wants to merge 2 commits intoHashGo:masterfrom
ishaanbahal:master

Conversation

@ishaanbahal
Copy link

If dns couldn't be resolved, the code threw a EADDRINFO error which caused other processes using this code to crash. Couldn't find a way to catch this error anywhere else, hence added it here.

Added error handling, which currently only prints the error and lets the other processes run without exiting.

Please, either review this and merge or add some error handling method.

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.

2 participants

0