WalletConnect/WalletConnectSwift

Connection failure iosApp

abdenourbestam opened this issue · 13 comments

Hello,
I get the following error when i try to connect iOS app to walletconnect

Task <D190A2B9-E403-4DE1-B9F5-527F29D9D50D>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." 
UserInfo={NSErrorFailingURLStringKey=https://safe-walletconnect.safe.global/, NSErrorFailingURLKey=https://safe-walletconnect.safe.global/,
_NSURLErrorRelatedURLSessionTaskErrorKey=("LocalWebSocketTask <D190A2B9-E403-4DE1-B9F5-527F29D9D50D>.<1>"), 
_NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask <D190A2B9-E403-4DE1-B9F5-527F29D9D50D>.<1>, 
    NSLocalizedDescription=The network connection was lost.}

Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."
UserInfo={NSErrorFailingURLStringKey=https://safe-walletconnect.safe.global/,
NSLocalizedDescription=The network connection was lost.,
NSErrorFailingURLKey=https://safe-walletconnect.safe.global/}

WC: Connection error: The network connection was lost. WC: didDisconnect url: https://safe-walletconnect.gnosis.io/

The used bridge :
let bridge = "https://safe-walletconnect.gnosis.io/
Can any body help me with this ? any suggestions ? The same code was working something has changed

Thanks in advance :)

I'm also getting this error.

Also getting this error

Same... https://safe-walletconnect.gnosis.io/ returns a 404 error:

{"statusCode":404,"error":"Not Found","message":"Not Found"}

Looks like a problem with the bridge. Try replacing https://safe-walletconnect.gnosis.io/ with https://bridge.walletconnect.org/

That worked for me at least...

Thanks for the reply

Using https://bridge.walletconnect.org/ instead of https://safe-walletconnect.gnosis.io/ does not resolve the problem the error still occurring.

I can connect by using wss instead of https ( wss://bridge.walletconnect.org/ )

But why ? is that normal ?

The bridge is used to exchange WebSocket messages, the http request should be re-routed to change of protocol.

That being said, we're migrating our services to a new domain, so the https://safe-walletconnect.gnosis.io/ redirects to https://safe-walletconnect.safe.global/ .

Sorry for the inconvenience.

Guys I have checked in our app again, and can confirm that the bridge is working fine. I should repeat that HTTP is not the protocol that the bridge works with, it's web sockets.

Please try with the https://safe-walletconnect.safe.global/ bridge

Same thing

https://safe-walletconnect.safe.global/ ----> -1005 error
wss://safe-walletconnect.safe.global/ ------> works

Please try with the https://safe-walletconnect.safe.global/ bridge

Constructing the WCURL using the new bridge URL you provided works for me on using 1.7.0 (tested 1.6.2 as well, works there too). I only use the Client part of the library and not the Server though.

When I open the metamask app with

https://safe-walletconnect.safe.global/ or

https://safe-walletconnect.gnosis.io/

The popup confirmation to login on Metamask iOS App doesn't appear...

Do you have the same issue?

I think we've got such an issue reported recently, we'll take a look at it

@ljs19923 for me, when I use the safe-walletconnect.safe.global as a bridge, metamask opens, as well as rainbow. With the old (gnosis.io) bridge it doesn't open.