WalletConnect / modal-react-native

Simplest and most minimal way to connect your users with WalletConnect
https://docs.walletconnect.com/2.0/advanced/walletconnectmodal/about?platform=react-native
Apache License 2.0
26 stars 8 forks source link

[bug]: Error: Socket stalled when trying to connect to wss://relay.walletconnect.com #111

Open yucheng-Li opened 1 month ago

yucheng-Li commented 1 month ago

Description

    <WalletConnectModal
      projectId={WCPARAMS.PROJECT_ID}
      providerMetadata={WCPARAMS.providerMetadata}
      sessionParams={WCPARAMS.sessionParams}
      relayUrl={'wss://relay.walletconnect.com'}
    />

WalletConnect Modal SDK version

1.1.0

Output of npx react-native info

System: OS: macOS 14.5 CPU: (8) x64 Apple M1 Memory: 162.25 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.20.1 path: ~/.asdf/installs/nodejs/18.20.1/bin/node Yarn: version: 1.22.21 path: /opt/homebrew/bin/yarn npm: version: 10.5.0 path: ~/.asdf/plugins/nodejs/shims/npm Watchman: version: 2024.01.22.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

Expo Version (if applies)

No response

Steps to reproduce

    I am in China now, if i not use vpn i will get a error when i in develop. Other way if build to testflight and open the app it will crashes immediately even i use vpn it not work.
    `

ERROR {"context": "core"} {"context": "core/relayer"} [Error: Socket stalled when trying to connect to wss://relay.walletconnect.com] WARN {"context": "core"} {"context": "core/relayer"} Connection via wss://relay.walletconnect.com failed, attempting to connect via failover domain wss://relay.walletconnect.org... ERROR {"context": "core"} {"context": "core/relayer"} [Error: WebSocket connection failed for host: wss://relay.walletconnect.org] WARN {"context": "core"} Core Initialization Failure at epoch 1717048281479 [Error: WebSocket connection failed for host: wss://relay.walletconnect.org] ERROR {"context": "core"} WebSocket connection failed for host: wss://relay.walletconnect.org INFO {"context": "client"} SignClient Initialization Failure `

Snack, code example, screenshot, or link to a repository

WechatIMG116

ignaciosantise commented 1 month ago

hey @yucheng-Li 👋 can you try removing the relayUrl={'wss://relay.walletconnect.com'} prop? Internally we have a fallback logic in case the .com fails

also, are you using a VPN? if so, can you turn it off and try again?

yucheng-Li commented 1 month ago

已收到