HathorNetwork / hathor-explorer-service

MIT License
1 stars 3 forks source link

fix: daemon error on status timeout #106

Closed r4mmer closed 2 years ago

r4mmer commented 2 years ago

Summary

During some calls the node would timeout the response (with status 504), or return a status 429 and although aiohttp does not raise an exception for this it does raise when trying to read a json from a mime-type html response (which is the case on both errors). The error treatment of the HathorCoreAsyncClient is to send the error to the callback, but the callback for the daemon does not have an error treatment.

Acceptance criteria