Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binance testnet rpc proxy partial outage #830

Closed
Droppix opened this issue Jan 18, 2023 · 14 comments
Closed

Binance testnet rpc proxy partial outage #830

Droppix opened this issue Jan 18, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@Droppix
Copy link

Droppix commented Jan 18, 2023

Describe the bug

1/ When we call the ModalCtrl.open() function (from the 2nd time, but sometimes randomly), we have an error which is displayed "Failed preloading" (see screenshot)

Any idea?

a547404f72b8cf8ea5dc9445f9585d2fdf0810d99f83a8a10040258f49eb5589

2/ We would like to hide "w3m-modal-backcard + w3m-toolbar", would it be possible to have an option?
By playing with the style + timer, it's works, but we have a "flicking"

SDK Version

  • Version [2.0.0 RC3]

Desktop (please complete the following information):

  • OS: [Mac OS]
  • Browser [Chrome]

**Environment

  • Vue + Nuxt 2

Thanks

@Droppix Droppix added the bug Something isn't working label Jan 18, 2023
@xzilja xzilja added the v2 label Jan 18, 2023
@xzilja
Copy link
Contributor

xzilja commented Jan 18, 2023

If you open network tab, can you pinpoint which requests are failing during preload please. Also you can try await web3modal.open() (there is no ModalCtrl in rc3, so I assume that was a typo?)

Currently no plans to removing header section, but we will be re-reviewing that soon once we release stable version and start on customisation tasks.

@Droppix
Copy link
Author

Droppix commented Jan 18, 2023

Strange...
1/ Package.json
"@web3modal/core": "^2.0.0-rc.3",
"@web3modal/ethereum": "^2.0.0-rc.3",
"@web3modal/ui": "^2.0.0-rc.3",

import { ClientCtrl, ConfigCtrl, ModalCtrl, OptionsCtrl } from '@web3modal/core'
import { WalletConnectConnector } from '@wagmi/core/connectors/walletConnect'
import { EthereumClient, modalConnectors, walletConnectProvider } from '@web3modal/ethereum'

2/ the node_modules directory has been destroyed

3/ npm i @wagmi/core@latest @web3modal/core@latest @web3modal/ethereum@latest @web3modal/ui@latest

Did I forget something?

@xzilja
Copy link
Contributor

xzilja commented Jan 18, 2023

You should no longer be using controller pattern, all methods are now accessible on instance of web3modal. Nor using core package.

You are probably coming from an older version vanilla js, so want to start using new and simpler html package i.e. https://docs.walletconnect.com/2.0/web3modal/html-js/installation

@Droppix
Copy link
Author

Droppix commented Jan 18, 2023

Ok, but would this explain the POST errors below? (this has been happening frequently for some time)

`
geturl.js?21de:48 POST https://rpc.walletconnect.com/v1/?chainId=eip155:97&projectId=962def0af1c680c26d6e0f8d4a24bd87 503 (Service Temporarily Unavailable)

geturl.js?21de:48 POST https://rpc.walletconnect.com/v1/?chainId=eip155:97&projectId=962def0af1c680c26d6e0f8d4a24bd87 503 (Service Temporarily Unavailable)
eval @ geturl.js?21de:48

geturl.js?21de:48 POST https://rpc.walletconnect.com/v1/?chainId=eip155:97&projectId=962def0af1c680c26d6e0f8d4a24bd87 503 (Service Temporarily Unavailable)

geturl.js?21de:48 POST https://rpc.walletconnect.com/v1/?chainId=eip155:97&projectId=962def0af1c680c26d6e0f8d4a24bd87 503 (Service Temporarily Unavailable)

@xzilja
Copy link
Contributor

xzilja commented Jan 18, 2023

Just checked with bsc testnet, everything seems to be fine with rpc.
Are you by any chance using some sort of proxy / vpn / located in country that might be blocking this request?

For latter, we are working on exposing non .com endpoints to unlock our api's in countries that might be blocking them atm. You will be able to configure these i.e. .org domains for example. Associated issue #829

You can also remove wallet connect rpc in favour of using something else that works while we are working on above.

@Droppix
Copy link
Author

Droppix commented Jan 18, 2023

No VPN, no proxy, we are in France, and we have no problems with the network... We see this error from time to time, but without really understanding...

I also tried with curl ( https://rpc.walletconnect.com/v1/?chainId=eip155:97&projectId=962def0af1c680c26d6e0f8d4a24bd87 ), same error ....

And there without touching the code, it works again!

@xzilja
Copy link
Contributor

xzilja commented Jan 18, 2023

I will forward this to our infra team so they can check the logs / see what could be wrong 👍

@Droppix
Copy link
Author

Droppix commented Jan 18, 2023

Thanks

@Droppix
Copy link
Author

Droppix commented Jan 18, 2023

FYI: 503 Service Temporarily Unavailable (NGINX)
same with curl -X POST
image

@thisisandreww
Copy link

FYI: 503 Service Temporarily Unavailable (NGINX) same with curl -X POST image

I am receiving this issue from time to time as well when connecting to bsc test net. It seems to occur intermittently when i'm trying to get the wallet balance.

@xzilja xzilja changed the title Failed preloading + Question about a possible option Binance testnet rpc proxy partial outage Jan 19, 2023
@arein
Copy link
Member

arein commented Jan 19, 2023

Hi. We strongly believe that this is not us but our BSC testnet RPC provider.
WalletConnect/blockchain-api#90 such that we can provide it and give you an according error message for when this happens in the future.

You are also welcome to add a BSC testnet provider you deem stable here: https://github.com/WalletConnect/rpc-proxy

Closing ticket. Please track the linked ticket and communicate there for more comments.

@arein arein closed this as completed Jan 19, 2023
@Droppix
Copy link
Author

Droppix commented Jan 19, 2023

@arein
It's still very strange, you must admit that it's your NGINX daemon that answers 503 and it's not us?

@arein
Copy link
Member

arein commented Jan 19, 2023

We don't use nginx at WalletConnect so you're just getting the 503 from our RPC provider as described above
(we act as a proxy)

@Droppix
Copy link
Author

Droppix commented Jan 19, 2023

sorry;) I didn't read your previous answer correctly "but our BSC testnet RPC provider."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants