You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just pulled some data out of a web API with HTTP.jl,
loaded it into a Vector{NamedTuple} with JSON2.jl.
And then thought I would like to take a look at what came back so I tried to call showtable on it.
Turns out the web API has given me some results of nothing
and so I get:
ArgumentError: `nothing` should not be printed; use `show`, `repr`, or custom output instead.
Stacktrace:
[1] print(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Nothing) at ./show.jl:566
[2] #sprint#340(::Nothing, ::Int64, ::Function, ::Function, ::Nothing) at ./strings/io.jl:101
[3] sprint(::Function, ::Nothing) at ./strings/io.jl:97
[4] #table2json#6(::Array{Int64,1}, ::Function, ::Array{NamedTuple,1}, ::Array{Symbol,1}, ::Array{Any,1}) at /Users/oxinabox/.julia/packages/TableView/sHktV/src/TableView.jl:151
[5] (::getfield(TableView, Symbol("#kw##table2json")))(::NamedTuple{(:requested,),Tuple{Array{Int64,1}}}, ::typeof(TableView.table2json), ::Array{NamedTuple,1}, ::Array{Symbol,1}, ::Array{Any,1}) at ./none:0
[6] (::getfield(TableView, Symbol("##4#5")){Array{Symbol,1},Array{Any,1},Array{NamedTuple,1},Observables.Observable{JSON.Writer.JSONText}})(::Dict{String,Any}) at /Users/oxinabox/.julia/packages/TableView/sHktV/src/TableView.jl:98
[7] #setindex!#1(::getfield(WebIO, Symbol("##39#40")), ::Function, ::Observables.Observable{Dict{String,Any}}, ::Dict{String,Any}) at /Users/oxinabox/.julia/packages/Observables/qCJWB/src/Observables.jl:87
[8] #setindex! at ./none:0 [inlined]
[9] setexcludinghandlers at /Users/oxinabox/.julia/packages/Observables/qCJWB/src/Observables.jl:103 [inlined]
[10] set_nosync(::Observables.Observable{Dict{String,Any}}, ::Dict{String,Any}) at /Users/oxinabox/.julia/packages/WebIO/7G1ZY/src/scope.jl:336
[11] dispatch(::WebIO.Scope, ::String, ::Dict{String,Any}) at /Users/oxinabox/.julia/packages/WebIO/7G1ZY/src/scope.jl:344
[12] dispatch_command(::WebIO.IJuliaConnection, ::Dict{String,Any}) at /Users/oxinabox/.julia/packages/WebIO/7G1ZY/src/connection.jl:107
[13] dispatch(::WebIO.IJuliaConnection, ::Dict{String,Any}) at /Users/oxinabox/.julia/packages/WebIO/7G1ZY/src/connection.jl:75
[14] (::getfield(WebIO, Symbol("##84#85")){WebIO.IJuliaConnection})(::IJulia.Msg) at /Users/oxinabox/.julia/packages/WebIO/7G1ZY/src/providers/ijulia.jl:21
[15] comm_msg(::ZMQ.Socket, ::IJulia.Msg) at /Users/oxinabox/.julia/packages/IJulia/gI2uA/src/comm_manager.jl:134
[16] #invokelatest#1 at ./essentials.jl:742 [inlined]
[17] invokelatest at ./essentials.jl:741 [inlined]
[18] eventloop(::ZMQ.Socket) at /Users/oxinabox/.julia/packages/IJulia/gI2uA/src/eventloop.jl:8
[19] (::getfield(IJulia, Symbol("##15#18")))() at ./task.jl:259
The text was updated successfully, but these errors were encountered:
I just pulled some data out of a web API with HTTP.jl,
loaded it into a
Vector{NamedTuple}
with JSON2.jl.And then thought I would like to take a look at what came back so I tried to call
showtable
on it.Turns out the web API has given me some results of
nothing
and so I get:
The text was updated successfully, but these errors were encountered: