blockchain-api
blockchain-api copied to clipboard
fix: add proxy timeout
Description
This adds a 10s timeout to call providers. Metrics show that sometimes endpoints can sometimes take a long time to respond and this could lead to 504 errors.
How Has This Been Tested?
Not tested
Due Diligence
- [ ] Breaking change
- [ ] Requires a documentation update
- [ ] Requires a e2e/integration test update
Thanks for adding this! I believe we want to return HTTP 503 in case of the timeout. We are returning HTTP 500 currently.
@geekbrother good catch 🙏 I've modified the code to retry for all server-related errors