-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle request errors on diagnose HTTP transmitter
Request errors are now handled on diagnose HTTP external calls (Push API key validation and report sending). The promise returned by `Transmitter#transmit` will only reject if there's some kind of error during the request. Non-200 response codes are not considered an error anymore. Output example: ``` Error submitting the report: getaddrinfo ENOTFOUND appsignal.com ```
- Loading branch information
1 parent
420541a
commit e5f4a97
Showing
3 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/nodejs/.changesets/handle-request-errors-on-diagnose-http-transmitter-.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
bump: "patch" | ||
type: "add" | ||
--- | ||
|
||
Handle request errors in the internal HTTP transmitter used by diagnose tool | ||
and Push API key validator. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters