This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
getBalance() method got error: fetch failed #2327
Labels
question
Add this to close an issue with instructions on how to repost as a question on Stack Exchange
I tried to use getBalance() method, but I got an error:
Error: failed to get balance of account GAcD...Di9xp: TypeError: fetch failed
I found that I call any method under Connection, I got the same error.
I guess maybe I should use agent, so I change my code to
const connection = new Connection(clusterApiUrl('devnet'), {httpAgent: agent})
But I got another error:
What should I do? Please help me, thanks.
The text was updated successfully, but these errors were encountered: