-
Notifications
You must be signed in to change notification settings - Fork 120
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
StreamClosed location NIOHTTP2/HTTP2StreamChannel.swift:827 #673
Comments
So The other errors:
indicate that the server has closed the connection. The |
Thank you for the quick reply!
This sounds very likely. I'm sending requests to multiple endpoints to get sports data. A lot of those endpoints have links in responses that I then traverse. Dumb question: are you saying my server wants to open a new HTTP2 connection or an external server that I'm requesting from would like to open a new HTTP2 connection? I currently use the Also, why would this cause the |
I think the server you are sending the HTTP requests to (through the
Not familiar with that part of Vapor, sorry. Probably best to ask this kind of question in the vapor related repository or swift forum section. |
Thanks @dnadoba ! Another dumb q incoming -- how do you close an HTTP/2 connection and open a new one? |
The only way currently possible with public API is by shutting down the whole |
Thanks @dnadoba ! I'll close this thread. |
Hi all!
I've been having an issue recently with my Vapor
ScheduledJob
s failing for the following reasons (not always the same reason and this isn't an exhaustive list afaik):HTTPClientError.cancelled
HTTPClientError.remoteConnectionClosed
StreamClosed(streamID: HTTP2StreamID(203), errorCode: HTTP2ErrorCode<0x8 Cancel>, location: "NIOHTTP2/HTTP2StreamChannel.swift:827")
StreamClosed(streamID: HTTP2StreamID(205), errorCode: HTTP2ErrorCode<0x8 Cancel>, location: "NIOHTTP2/HTTP2StreamChannel.swift:827")
StreamClosed(streamID: HTTP2StreamID(201), errorCode: HTTP2ErrorCode<0x8 Cancel>, location: "NIOHTTP2/HTTP2StreamChannel.swift:827")
I came across the following similar reported issues:
HTTPClient.remoteConnectionClosed
errors #488After reading those issues, I tried setting
app.http.client.configuration.httpVersion = .http1Only
inconfigure.swift
and that appears to have fixed my issue 🤞.I'm using Vapor version 4.0.0 and async-http-client version
1.12.0
. I'm still usingEventLoopFuture
and have not yet migrated toasync / await
.Please let me know if there is any information I can provide to help resolve this issue so I can remove the reliance on
http1Only
. Thank you!The text was updated successfully, but these errors were encountered: