-
-
Notifications
You must be signed in to change notification settings - Fork 956
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
Error: Premature close
on DELETE requests after upgrading to 10.0.3 (from 9.6.0)
#990
Comments
|
@szmarczak well, I cant provide those but I'll put in dummy values I guess |
@szmarczak sorry, I had pasted the code for 9.6. Fixed now. |
I cannot reproduce: https://runkit.com/szmarczak/5df28703ccf29c001cf54735 |
Yeah, it wont work with those variables. We'll need to find a url we can use to test. Also, I am unable to reproduce locally on my machine (OS-X). But I see the errors as soon as I deploy to our servers. |
Are you sure it's |
@szmarczak I was on |
Are you doing this: got.on('response', response => {
response.on('error', ...);
}); Or just applying |
I see it's |
What are the response headers? |
Unfortunately, this only happens on production servers and I dont have access to the headers. I haven't been able to reproduce locally or on heroku yet. |
I'm able to reproduce it now, will post a fix soon. |
got/source/request-as-event-emitter.ts Line 146 in d083a59
If to remove the |
@szmarczak great news. thanks for looking into it! |
I just tried the latest version 10.2.1. I am still getting errors:
|
Filed #1014 |
Describe the bug
We updated from 9.6.0 to 10.0.3 and as soon as it was deployed, we started getting
Error: Premature close
on most or all of ourDELETE
requests. TheGET
andPOST
requests work fine.Maybe some cases were missed in 7b2ccb0?
Actual behavior
Expected behavior
We shouldn't get a
Premature close
error on successfulDELETE
requests.Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: