-
Notifications
You must be signed in to change notification settings - Fork 39
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
[bug] Error for failing to decode JSON should include the JSON #126
Comments
I will be adding a dump pre-JSON deserialization to data-classes this weekend although have a bit more context like the kind of commands being built with SuiTransaction (async or sync). Is it just a |
I'm not sure how easy the specific issue in the example is to reproduce, but @nathan-kairon, would you mind sharing some extra context here? My understanding is that it's a fullnode that's just acting up and producing the wrong data for a devInspect call, and we'd like to see what response it did produce to figure out why. |
Basically the above exception is saying one of the information fields returns in the Effects portion of the Inspect results is malformed. The 'reference' is a property of an In gas_object: OwnedObjectRef = field(metadata=config(letter_case=LetterCase.CAMEL))
mutated: Optional[list[OwnedObjectRef]] = field(default_factory=list)
created: Optional[list[OwnedObjectRef]] = field(default_factory=list)
deleted: Optional[list[ObjectRef]] = field(default_factory=list)
wrapped: Optional[list[ObjectRef]] = field(default_factory=list)
unwrapped: Optional[list[OwnedObjectRef]] = field(default_factory=list)
unwrapped_then_deleted: Optional[list[ObjectRef]] = field(
metadata=config(letter_case=LetterCase.CAMEL), default_factory=list
)
shared_objects: Optional[list[GenericRef]] = field(
metadata=config(letter_case=LetterCase.CAMEL), default_factory=list
) I did find, and corrected, that Also, the latest push to branch try:
tx.execute(...)
except ValueError a ve:
print(ve) May provide insight. |
Added to 0.28.0 |
Below is a stacktrace from executing a transaction where the fullnode being used returned an unexpected response. The error shows that
pysui
's types expected areference
field but one could not be found. In these cases, it would also be useful to know what the JSON that was being serialized looked like, to figure out why the fullnode produced that response.Example
The text was updated successfully, but these errors were encountered: