web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[bug] Error: failed to get balance of account

Open bonnusi opened this issue 1 year ago • 1 comments

Link to minimal reproducible example

https://appkit-lab.reown.com/library/solana/

Summary

The error drops with some unclear frequency Uncaught (in promise) Error: failed to get balance of account [account]: n: Expected the value to satisfy a union of 'type | type', but received: [object Object]

This problem not only for Phantom wallet, also for trust wallet and solflare wallet

Network - solana mainnet

https://github.com/user-attachments/assets/d341b12c-cb2c-40c2-8123-f1045d0fbdd2

image image image

List of related npm package versions

"@reown/appkit": "1.0.7", "@reown/appkit-adapter-solana": "1.0.7", "@tanstack/react-query": "5.24.8", "react": "18.2.0", "react-dom": "18.2.0", "vite": "5.2.11", "@solana/wallet-adapter-backpack": "0.1.14", "@solana/wallet-adapter-wallets": "0.19.32"

bonnusi avatar Oct 09 '24 15:10 bonnusi

Also encountered this issue, and experienced this intermittently. I have a code example with it set up here https://github.com/DaveTheFrontEndDev/reown-solana-transaction-bug

Web3Dave avatar Oct 10 '24 12:10 Web3Dave

Please reach out again with more details, as we cannot reproduce the issue.

rtomas avatar Dec 11 '24 19:12 rtomas