Emurgo / yoroi

Yoroi - Your Cardano entry point for joining the ecosystem, whether as developer or user.
https://yoroi-wallet.com/
Apache License 2.0
159 stars 49 forks source link

fix(wallet-mobile): adds log for token activity error #3619

Closed jorbuedo closed 2 months ago

jorbuedo commented 2 months ago

Description / Change(s) / Related issue(s)

Previous log (called directly by react-query when throwing)

{"message": undefined, "responseData": {"reasons": {"": [Array]}}, "status": 500}

With this change:

{"endpoint":"tokenActivity","status":500,"responseData":{"reasons":{"":["unexpected error"]}}}
stackchain commented 2 months ago

it is returning 500, just a quick recall that by not throwing react-query will return isSuccess: true, isError: false, even when failing, with data: null, I think is ok for debugging, but it looks like the issue might be sitting in the request.