WalletConnect / Web3ModalUnity

WalletConnect AppKit: a single Web3 provider solution for all Wallets
Apache License 2.0
4 stars 1 forks source link

QR Image Not Loading #6

Open WoodsFiend opened 2 weeks ago

WoodsFiend commented 2 weeks ago

After setting up Web3Modal by following the documentation, no QR codes are loading for me to scan when testing in the editor.

Unity Version: 2022.3.11f1 Web3Modal Version: 0.3.1

image image

There doesn't seem to be any errors and the logs seem to indicate I established a connection. Connector.Connect UnityEngine.Debug:Log (object) WalletConnect.Web3Modal.Connector:Connect () (at ./Library/PackageCache/com.walletconnect.web3modal@0.3.1/Runtime/Connectors/Connector.cs:62)

Got connection UnityEngine.Debug:Log (object) WalletConnect.Web3Modal.Connector:Connect () (at ./Library/PackageCache/com.walletconnect.web3modal@0.3.1/Runtime/Connectors/Connector.cs:68)

skibitsky commented 2 weeks ago

Hello,

It appears the app did not receive a response from the WalletConnect relay. Could you please answer a few questions to help me better understand the situation?

  1. What's your operating system?
  2. Do you have VPN/Proxy enabled?
  3. Can you access https://walletconnect.com/ in your browser without VPN/Proxy in your network?
  4. Have you tried connecting on another network?
  5. What target platform is selected in the build settings?
WoodsFiend commented 2 weeks ago
  1. Windows 10
  2. No VPN/Proxy
  3. Yes I can access walletconnect.com
  4. I tried 2 different Wifi networks that I have
  5. Build settings are for Windows (Intel 64-bit Architecture)

I found more logs when I enabled logging in the config, this comes after the logs I sent above. (I removed the params in-case my app id is in there) [Relayer] Checking for established connection [Relayer] Sending request through provider [JsonRpcProvider] Checking if connected [JsonRpcProvider] Sending request irn_subscribe with data {"method":"irn_subscribe","params":{} [Relayer] Checking for established connection [Relayer] Sending request through provider [JsonRpcProvider] Checking if connected [JsonRpcProvider] Sending request irn_publish with data {"method":"irn_publish","params":{}

Sometimes if I try to reload a QR after this I get a couple expired topic logs, then an unsubscribe log: Expired topic topic:1557bade5ac4527512223d3b6cfdfb09eae1a38ffad2196223153f7ba7dc4c68 Expired topic id:74258315530174 [JsonRpcProvider] Sending request irn_unsubscribe with data {"method":"irn_unsubscribe","params":{}

WoodsFiend commented 2 weeks ago

I just tried a build and it seems to be the same issue, so not just an editor problem.

Though when I ran the build I did notice this warning about an uncompiled Assembly Definition File. This might be the culprit since I think its a barcode library. There doesn't seem to be any scripts alongside the dll. Assembly for Assembly Definition File 'Packages/com.walletconnect.core/Runtime/External/ZXing/ZXing.asmdef' will not be compiled, because it has no scripts associated with it.

skibitsky commented 2 weeks ago

@WoodsFiend thank you providing more information 🙏

It looks like the problem is with the ZXing library used for generating QR code images. I'm looking into it. Meanwhile, can you confirm if the "Copy link" button on the screen where the QR code should appear is working for you? Does it copy the WalletConnect connection URI?

WoodsFiend commented 1 week ago

@skibitsky Yes it does copy the WalletConnect connection URI

skibitsky commented 1 week ago

Hey @WoodsFiend,

Sorry for the delay. I have fixed the warning in the recent release. Could you please upgrade Web3Modal to v0.3.2 and check if the issue persists?