Skip to content

show_problems throws ClientException on exec_async result #55

@Ally-R

Description

@Ally-R

show_problems is not working with exec_async result. For example, this errors:

res = exec_async(conn.ctx, conn.database, conn.engine, relation)
txn = res.transaction
show_problems(res)

The error message:

ERROR: LoadError: MethodError: no method matching show_problems(::RAI.TransactionResponse)
Closest candidates are:
  show_problems(::IO, ::JSON3.Object) at ~/.julia/packages/RAI/NanbV/src/results.jl:104
  show_problems(::JSON3.Object) at ~/.julia/packages/RAI/NanbV/src/results.jl:126
  show_problems(::IO, ::RAI.TransactionResult) at ~/.julia/packages/RAI/NanbV/src/results.jl:128
  ...
Stacktrace:
 [1] execute_relation(conn::CloudConnection, relation::String)
   @ Main.RAICloudClient ~/ey-taxable-income/julia/cloud/client/rai_cloud_service.jl:46
 [2] macro expansion
   @ ./timing.jl:220 [inlined]
 [3] export_data(conn::CloudConnection, cloud_provider::String, cloud_uri::String, token::String)
   @ Main ~/ey-taxable-income/julia/cloud/export.jl:34
...

I also tried show_problems(txn), which produces this error:

ERROR: LoadError: KeyError: key :type not found
Stacktrace:
  [1] getindex(h::Dict{Symbol, Int64}, key::Symbol)
    @ Base ./dict.jl:481
  [2] get(obj::JSON3.Object{Vector{UInt8}, SubArray{UInt64, 1, Vector{UInt64}, Tuple{UnitRange{Int64}}, true}}, key::Symbol)
    @ JSON3 ~/.julia/packages/JSON3/GoF7x/src/JSON3.jl:86
  [3] getproperty
    @ ~/.julia/packages/JSON3/GoF7x/src/JSON3.jl:126 [inlined]
  [4] show_problems(io::Base.TTY, rsp::JSON3.Object{Vector{UInt8}, SubArray{UInt64, 1, Vector{UInt64}, Tuple{UnitRange{Int64}}, true}})
    @ RAI ~/.julia/packages/RAI/NanbV/src/results.jl:106
  [5] show_problems(rsp::JSON3.Object{Vector{UInt8}, SubArray{UInt64, 1, Vector{UInt64}, Tuple{UnitRange{Int64}}, true}})
    @ RAI ~/.julia/packages/RAI/NanbV/src/results.jl:126
  [6] execute_relation(conn::CloudConnection, relation::String)
    @ Main.RAICloudClient ~/ey-taxable-income/julia/cloud/client/rai_cloud_service.jl:46
...

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions