plotly / Dash.jl

Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rpkyle opened this issue · comments

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

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