I can reproduce this. I think the issue might lie with PlotlyJS
but due to a limitation in parsing the very large JSON string generated from PlotlyJS
. The error is very similar to what happens when JSON.jl
tries to parse the empty string:
using JSON
JSON.parse("")
ERROR: Unexpected end of input
Line: 0
Around: ......
^
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] _error(message::String, ps::JSON.Parser.MemoryParserState)
@ JSON.Parser ~/.julia/packages/JSON/QXB8U/src/Parser.jl:140
[3] byteat
@ ~/.julia/packages/JSON/QXB8U/src/Parser.jl:49 [inlined]
[4] parse_value(pc::JSON.Parser.ParserContext{Dict{String, Any}, Int64, true, nothing}, ps::JSON.Parser.MemoryParserState)
@ JSON.Parser ~/.julia/packages/JSON/QXB8U/src/Parser.jl:160
[5] parse(str::String; dicttype::Type, inttype::Type{Int64}, allownan::Bool, null::Nothing)
@ JSON.Parser ~/.julia/packages/JSON/QXB8U/src/Parser.jl:450
[6] parse(str::String)
@ JSON.Parser ~/.julia/packages/JSON/QXB8U/src/Parser.jl:448
So my vague guess would be that the error occurs around here:
PlotlyJS ~/.julia/packages/PlotlyJS/4jzLr/src/kaleido.jl:104
when any empty string is given to JSON.parse()
.