Skip to content
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

show_problems throws ClientException on exec_async result #55

Open
Ally-R opened this issue Jul 21, 2022 · 3 comments
Open

show_problems throws ClientException on exec_async result #55

Ally-R opened this issue Jul 21, 2022 · 3 comments

Comments

@Ally-R
Copy link

Ally-R commented Jul 21, 2022

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
...
@NHDaly
Copy link
Member

NHDaly commented Aug 8, 2022

One of the three of us should tackle this one. Whoever gets to it first, please feel free to remove the other two assignees.

@NHDaly
Copy link
Member

NHDaly commented Aug 8, 2022

Thanks for the report, @Ally-R! :)

@billscheidel-rai
Copy link

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-6085.

This link is only accessible to employees of RelationalAI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants