WalletConnect / Web3ModalFlutter

The Web3Modal for WalletConnect built using Flutter.
https://pub.dev/packages/web3modal_flutter
Apache License 2.0
44 stars 44 forks source link

Failed to get request eth_getBalance. Requested eip155:11155111 chain provider is temporarily unavailable #165

Open Mindsetter opened 3 months ago

Mindsetter commented 3 months ago

Describe the bug I tried requesting for Ethereum Sepolia balance, but it shows an error.

Meaningful logs Failed to get request eth_getBalance. Requested eip155:11155111 chain provider is temporarily unavailable

quetool commented 3 months ago

Hello @Mindsetter ! I'll report to blockchain devs, do you mind trying out latest version 3.3.3?

Mindsetter commented 3 months ago

@quetool Still not working after updating to 3.3.3

Logs Failed to get request eth_getBalance. Response: {"status":"FAILED","reasons":[{"field":"chainId","description":"Requested eip155:11155111 chain provider is temporarily unavailable"}]}, Status code: 503

geekbrother commented 3 months ago

Hey @Mindsetter! Can you please share the RPC request? That's possible that the RPC request are bad and instead of HTTP 400 we are responding with the 503 chain x unavailable. We will fix the proper handling of this type of errors asap.

quetool commented 3 months ago

@geekbrother blockchain API is queried from within Web3Modal SDK, we can investigate this together.

@Mindsetter ̶a̶n̶y̶ ̶c̶h̶a̶n̶c̶e̶ ̶y̶o̶u̶ ̶c̶a̶n̶ ̶t̶e̶l̶l̶ ̶u̶s̶ ̶t̶h̶e̶ ̶s̶e̶l̶e̶c̶t̶e̶d̶ ̶c̶h̶a̶i̶n̶ ̶w̶h̶e̶n̶ ̶t̶h̶i̶s̶ ̶i̶s̶ ̶h̶a̶p̶p̶e̶n̶i̶n̶g̶?̶ LOL, never mind, I see it's 11155111

Mindsetter commented 3 months ago

@quetool I can see that Web3Modal SDK, still not using the latest endpoint

Old https://ethereum-sepolia.publicnode.com

New https://ethereum-sepolia-rpc.publicnode.com

Can that be the reason?

quetool commented 3 months ago

That's more a question to @geekbrother ...

Could you try this dependency in the meantime? Replace your web3modal_flutter: X.X.X with this:

  web3modal_flutter:
    git:
      url: https://github.com/WalletConnect/Web3ModalFlutter.git
      ref: 6dc34a32fa05926bee5e6436f7345c087bc79f0e
Mindsetter commented 3 months ago

@quetool Is showing the balance now. Thank you

quetool commented 3 months ago

Wonderful! I'll release a patch version soon but you can use that for now.