Skip to content

failing contract with long value #230

Closed Answered by slowbackspace
reitcircles asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cffls, it seems that the error @reitcircles posted 'Namespace' object has no attribute 'result' points to a problem with the parsing of the response in pycardano itself. Blockfrost Python SDK, in this case, only sends a POST request and converts the response JSON to python object.

I think the problem with the error propagation from Blockfrost/Ogmios is that pycardano expects that result field is always present in the response. That is not correct assumption.
https://github.com/Python-Cardano/pycardano/blob/main/pycardano/backend/blockfrost.py#L288

For example, when sending invalid CBOR to evaluateTx endpoint, the error returned from Ogmios has following format

{
  type: 'jsonwsp/fault…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@1000101
Comment options

@nielstron
Comment options

@cffls
Comment options

@slowbackspace
Comment options

Answer selected by nielstron
@cffls
Comment options

Comment options

You must be logged in to vote
1 reply
@nielstron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants