Skip to content

Add Retries to ENSRainbow fetches #835

@shrugs

Description

@shrugs
TypeError: fetch failed
    at labelByLabelHash (/app/apps/ensindexer/src/lib/graphnode-helpers.ts:28:24)
    at /app/apps/ensindexer/src/handlers/Registry.ts:188:23
  26 |  **/
  27 | export async function labelByLabelHash(labelHash: LabelHash): Promise<Label | null> {
> 28 |   const healResponse = await ensRainbowApiClient.heal(labelHash);
     |                        ^
  29 |
  30 |   if (!isHealError(healResponse)) {
  31 |     // original label found for the labelHash
caused by: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)

ENSRainbow client should gracefully retry (with backoff) over the course of like 5-10 seconds before dying

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions