You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just spent a good 2 hours trying to track down the reason for an error message. Whle the stack pointed to a nodejs source file, I wasn't sure if it was one of the packages reporting it or something else. I didn't even know where the problem was coming from:
0|developm | 3:55:21:346 am | [SERVER] | [ERROR] | API REQUEST | Error Caught during Request | rJZmo6tCZ session /v2/system/session TypeError [ERR_MISSING_ARGS]: The "value" argument must be specified
0|developm | at validateHeader (_http_outgoing.js:501:11)
0|developm | at ClientRequest.setHeader (_http_outgoing.js:510:3)
It feels like this should actually say what the problem was rather than having to find the source code and browse through it looking for the possible reasons for things.
Maybe something like `"HTTP Header $headername is undefined."
The text was updated successfully, but these errors were encountered:
In this case ERR_MISSING_ARGS does seem to be a bit too board for debug-ability, at least it should include the header name in the error message. Another search shows that the ERR_HTTP2_INVALID_HEADER_VALUE does not include the header name either. Also the validateHeader part can be eliminated with captureStacktrace.
Thanks for reporting the issue, I will open a PR shortly.
mscdex
added
http
Issues or PRs related to the http subsystem.
errors
Issues and PRs related to JavaScript errors originated in Node.js core.
labels
Nov 3, 2017
Just spent a good 2 hours trying to track down the reason for an error message. Whle the stack pointed to a nodejs source file, I wasn't sure if it was one of the packages reporting it or something else. I didn't even know where the problem was coming from:
https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js#L497-L508
Here it just gives this:
It feels like this should actually say what the problem was rather than having to find the source code and browse through it looking for the possible reasons for things.
Maybe something like `"HTTP Header $headername is undefined."
The text was updated successfully, but these errors were encountered: