-
Notifications
You must be signed in to change notification settings - Fork 10
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
IOError: stream is closed or unusable #18
Comments
Hi @federico can I get the example app where this error occurred? And what version of Julia are you using? |
oh, I meant the example app in the documentation: import HTTP
using Dashboards
app = Dash("Test app", external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]) do
html_div() do
html_h1("Hello Dashboards"),
html_div("Dashboards: Julia interface for Dash"),
dcc_graph(
id = "example-graph",
figure = (
data = [
(x = [1, 2, 3], y = [4, 1, 2], type = "bar", name = "SF"),
(x = [1, 2, 3], y = [2, 4, 5], type = "bar", name = "Montréal"),
],
layout = (title = "Dash Data Visualization",)
)
)
end
end
handler = make_handler(app, debug = true)
HTTP.serve(handler, HTTP.Sockets.localhost, 8080) I'm using Julia 1.3.1 |
I can't reproduce this error with Chromium, only with Firefox. Also, the error is only thrown the first time the page is requested after a change to the code. This makes me think it has something to do with the precompilation of Julia. |
I can't reproduce it yet :( |
It's probably an issue with HTTP.jl and not Dashboards.jl anyway 🤔 |
When running the example app and refreshing it in the browser, I get the following error:
It seems like an error with HTTP.jl as seen here JuliaWeb/HTTP.jl#392 but maybe you have an idea @waralex ?
The text was updated successfully, but these errors were encountered: