hashgraph / hethers.js

DEPRECATED Complete EVM library in JavaScript/TypeScript for Hedera Hashgraph Smart Contract Service
https://docs.hedera.com/hethers
MIT License
16 stars 7 forks source link

Add configurable retry logic to mirror node requests #265

Closed steven-sheehy closed 2 years ago

steven-sheehy commented 2 years ago

Is your feature request related to a problem? Please describe. The mirror node can occasionally return non-2xx response codes due to transient errors like 502s for when proxy attempts to route to a pod that's in the middle of terminating.

Describe the solution you'd like Add an axios retry interceptor that will retry failures that aren't a result of user input. It should:

Describe alternatives you've considered Retry in the application

Additional context