Skip to content
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

Periodic "IOError: stream is closed or unusable" message appears when responding to web request #67

Closed
rpkyle opened this issue Oct 12, 2020 · 1 comment

Comments

@rpkyle
Copy link
Contributor

rpkyle commented Oct 12, 2020

On several occasions I have seen the following message appear in the REPL, even as the Dash app continues to be accessible from the browser:

┌ Error: error handling request
│   exception =
│    IOError: stream is closed or unusable
│    Stacktrace:
│     [1] unsafe_write at /home/rpkyle/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:171 [inlined]
│     [2] unsafe_write(::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}, ::Ptr{UInt8}, ::UInt64) at /home/rpkyle/.julia/packages/HTTP/IAI92/src/Streams.jl:98
│     [3] unsafe_write at ./io.jl:622 [inlined]
│     [4] write at ./io.jl:645 [inlined]
│     [5] handle(::HTTP.Handlers.RequestHandlerFunction{Dash.HttpHelpers.var"#4#5"{Array{String,1},Int64,HTTP.Handlers.RequestHandlerFunction{Dash.HttpHelpers.var"#7#8"{Dash.var"#65#67"{Dash.DashApp},HTTP.Handlers.RequestHandlerFunction{Dash.HttpHelpers.var"#1#2"{Dash.HttpHelpers.Router,Dash.HandlerState}}}}}}, ::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at /home/rpkyle/.julia/packages/HTTP/IAI92/src/Handlers.jl:279
│     [6] #4 at /home/rpkyle/.julia/packages/HTTP/IAI92/src/Handlers.jl:345 [inlined]
│     [7] macro expansion at /home/rpkyle/.julia/packages/HTTP/IAI92/src/Servers.jl:367 [inlined]
│     [8] (::HTTP.Servers.var"#13#14"{HTTP.Handlers.var"#4#5"{HTTP.Handlers.RequestHandlerFunction{Dash.HttpHelpers.var"#4#5"{Array{String,1},Int64,HTTP.Handlers.RequestHandlerFunction{Dash.HttpHelpers.var"#7#8"{Dash.var"#65#67"{Dash.DashApp},HTTP.Handlers.RequestHandlerFunction{Dash.HttpHelpers.var"#1#2"{Dash.HttpHelpers.Router,Dash.HandlerState}}}}}}},HTTP.ConnectionPool.Transaction{Sockets.TCPSocket},HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}})() at ./task.jl:356

Not sure about the cause, but seems to be happening reasonably often (several times per day) for me both on Mac OS and on my Linux workstation, so mentioning here.

@alexcjohnson

@rpkyle rpkyle changed the title Periodic IOError: stream is closed or unusable" appears when responding to web request Periodic "IOError: stream is closed or unusable" message appears when responding to web request Oct 12, 2020
@alexcjohnson
Copy link
Contributor

Looks like waralex/Dashboards.jl#18 again, which references JuliaWeb/HTTP.jl#546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants