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

Connection failure iosApp #137

Open
abdenourbestam opened this issue Oct 15, 2022 · 13 comments
Open

Connection failure iosApp #137

abdenourbestam opened this issue Oct 15, 2022 · 13 comments

Comments

@abdenourbestam
Copy link

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 :)

@grimtrigg
Copy link

I'm also getting this error.

@ljs19923
Copy link

Also getting this error

@maurovz
Copy link

maurovz commented Oct 18, 2022

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

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

@maurovz
Copy link

maurovz commented Oct 18, 2022

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...

@abdenourbestam
Copy link
Author

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 ?

@DmitryBespalov
Copy link
Collaborator

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.

@DmitryBespalov
Copy link
Collaborator

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.

@DmitryBespalov
Copy link
Collaborator

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

@abdenourbestam
Copy link
Author

Same thing

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

@robin-on-git
Copy link
Contributor

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.

@ljs19923
Copy link

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?

@DmitryBespalov
Copy link
Collaborator

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

@DmitryBespalov
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants