Skip to content

Conversation

bh2smith
Copy link
Member

@bh2smith bh2smith commented Jan 14, 2025

We are hitting some failed balance fetching on Avalanche:

Error fetching Safe balances: TypeError: fetch failed
    at node:internal/deps/undici/undici:13185:13
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at process.processImmediate (node:internal/timers:454:9)
    at process.callbackTrampoline (node:internal/async_hooks:130:17)
    at async getSafeBalances (/var/task/node_modules/@bitte-ai/agent-sdk/dist/cjs/evm/safe.js:40:26)
    at async Promise.all (index 0) {
    [cause]: ConnectTimeoutError: Connect Timeout Error (attempted addresses: 108.138.85.41:443)
    at onConnectTimeout (node:internal/deps/undici/undici:2331:28)
    at node:internal/deps/undici/undici:2283:50
    at Immediate._onImmediate (node:internal/deps/undici/undici:2315:13)
    at process.processImmediate (node:internal/timers:483:21)
    at process.callbackTrampoline (node:internal/async_hooks:130:17) {
    code: 'UND_ERR_CONNECT_TIMEOUT'
  }
}

for this request:

https://safe-transaction-avalanche.safe.global/api/v1/safes/0x454F89b3Ba39A15C198F95c2C92A20dD9D102144/balances/?trusted=false&exclude_spam=true

Attempting to temporarily navigate the Safe Balance fetching failures by using zerion on error.

Asked about rate limiting on Safe Discord

@bh2smith bh2smith merged commit 07ef069 into main Jan 14, 2025
1 check passed
@bh2smith bh2smith deleted the balances/zerion-fallback branch January 14, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant