graphprotocol / thegarii

The Graph Arweave Integration Implementation
2 stars 7 forks source link

When hitting a 429 error, show more info #120

Open matthewdarwin opened 9 months ago

matthewdarwin commented 9 months ago

From time to time you will see error like:

retrying request in 10 second(s), at attempt 1, attempts left

Apparently this is a 429 rate exceeded request. A few improvements can be made:

chamorin commented 9 months ago

Would a json format be good for that? Something like this:

[2024-02-06T00:41:29Z WARN  thegarii::client] { "endpoint": "https://arweave.net/", "path": "tx/G0-ZqnrrAtAZOoqzrKk5atyNIpms3g57CBjumxThtPE", "status": "429 Too Many Requests", "retry_in": 10, "attempts": 1, "attempts_left": 99 }
matthewdarwin commented 9 months ago

looks much better