-
Notifications
You must be signed in to change notification settings - Fork 181
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
Stream is closed or unusable #392
Comments
Turns out this happened because the request had a timeout of 1s set, which was too short when using the server for the first time and compiling lots of methods. I feel like this should be handled more gracefully though. |
Hmmm.........tricky issue. We could probably provide a sort of |
I'm occasionally getting this error on 0.8.3 using LiveServer. Here's the stacktrace of the most recent event. It feels like it's the kind of errors that should be handled by HTTP itself (?)
PS: we use In the mean time does it make sense to use something like try
HTTP.handle(...)
catch e:
if isa(e, IOError)
# sleep and then try again
else
throw(e)
end
end ? |
Yeah, with
I meant that the error should be presented more nicely or something like that (maybe even explain why this might happen).
The problem I had was that the client that made the request (aka a browser) was timing out, not the server. |
I'm encountering this phenomenon pretty frequently when using the AWS* packages, i.e. I am not interacting directly with HTTP.jl. Nothing seems to break, but this info/warning shows up frequently. Does that suggest that the warnings are spurious, a problem in HTTP.jl, a problem in AWSCore.jl, or a problem on Amazon's end? |
mosty likely it's with HTTP.jl which is used by AWSCore |
When running |
I was wondering whether any progress has been made toward resolving this problem? I encountered this problem while trying to communicate with a websocket server via Java. The details can be found here. After tweaking the setup, I was able to successfully communicate with the websocket server, but the stream closed or is useable warning continued to display. It seems like part of the problem is that the error catching logic is producing false alarms in some cases. This behavior is consistent with that reported by evanfields. Update: |
I'm also getting this error when refreshing a web app created with https://github.com/waralex/Dashboards.jl Maybe it's related to websites that are slow to load on the client side? |
If you e.g. refresh the site while HTTP is still trying to answer (and write to the stream), you'll get this error. It's usually fine to ignore. |
This is still a very annoying issue in HTTP v0.8.19 -- when starting my server, and navigating to the given webpage in Firefox 84, this is the error it prints. As noted in many other threads, browsers do this. It's not an actionable exception.
|
I also have a similar stack trace:
|
With Julia 1.1 and HTTP 0.8.0 I'm getting a super weird error once the route is hit:
The text was updated successfully, but these errors were encountered: