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
Uncaught error: The header content contains invalid characters #353
Comments
What exact version of Got do you have installed and how are you using it (Promise API or Streaming)? |
Wonder if it's something like request/request#2120 or https://stackoverflow.com/questions/43194065/node-js-http-typeerror-the-header-content-contains-invalid-characters |
That would be 7.1.0 and Promise mode
…On Sat, Aug 5, 2017 at 7:43 AM Sindre Sorhus ***@***.***> wrote:
What exact version of Got do you have installed and how are you using it
(Promise API or Streaming)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#353 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG3lJXs6no_dGb3T8aiwuFB5XcZ7DfFwks5sVFVSgaJpZM4OuIJB>
.
|
I think this is fixed in master. Could you try running master? I could reproduce the unhandled exception when I put a throw statement in 7.1.0 here: Line 48 in b725ef5 Lines 258 to 260 in 8b040af
|
When I update to the latest commit on master and run my test suite, the process never exits and I'm getting a Could it be that some sort of memory leak was introduce in the master codebase since 7.1.0? |
Not sure. Usually, that warning is just an annoying false positive though. Try to reduce your test suite until it runs again to narrow down what's causing it. |
Yeah, I've noticed ;)
Although in this case it does seem to correlate with a bigger issue of my
process not exiting. No other errors or warnings though.
…On Mon, Aug 7, 2017 at 5:05 PM Sindre Sorhus ***@***.***> wrote:
Not sure. Usually, that warning is just an annoying false positive though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#353 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG3lJUuFpEQAAEe30YYrTWQXDZ4JMgvkks5sV3wpgaJpZM4OuIJB>
.
|
I've been able to replicate this in my load tests. It seems that more and more listeners are added somewhere in the code and not cleaned up. Could it be that if a request fails some listeners are not removed? Could this be somehow related to me using |
@pietermees as stated in #382 original issue seems ok in master branch I get the MaxListenersExceededWarning warning too on connect and request event but it may be better to open a new issue |
@petitchevalroux seems like @timdp opened up a new issue for the memory leak |
I've been seeing occasional uncaught exceptions:
Scanning the code it seems that errors thrown directly by
http.request
orhttps.request
on that line are not caught.This is happening on a server that processes a very large number of http requests and I haven't been able to track down which requests cause this error.
The text was updated successfully, but these errors were encountered: