hyperledger-firefly / hyperledger-firefly/evmconnect

evmconnect does not respect HTTP 429

Open
#135 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Go
Stars
17
Forks
20
Avg merge
2d 6h
Merged PRs (30d)
18

Description

When processing RPC requests, a node may request the caller to slow down by giving an [HTTP 429 response](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429).

evmconnect does not seem to handle this response properly. The correct behavior would be to pause all RPC requests for some amount of time. If the response specifies a `Retry-After` header, than that should be respected, but otherwise a random delay (of a few seconds) can be selected.

Currently, evmconnect has a pretty aggressive retry behavior - so it continues to hammer the node even while receiving multiple HTTP 429 responses (which makes the situation worse and can result in being blocked from making further requests).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.