-
Notifications
You must be signed in to change notification settings - Fork 13
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
Problem: initialize error in metaverse demo #298
Comments
trying to reproduce on windows |
Just to clarify, I'm getting And from All the Erc20 functions in I did some digging and I've found something that might be related. I noticed this warning while compiling:
Check the file The first line which is So in |
ok, i'll check on windows |
Opened a new blank project and still had the same Invalid Client error. Windows 10 64-bit. |
thanks, i'm checking now. |
It is working fine in my setting, what chain_id and rpc are you using? |
The error was generated by https://briansmith.org/rustdoc/webpki/enum.Error.html#variant.UnsupportedCriticalExtension that possibly originated from tokio-tungstenite, it seems it was generated when you connected to the chain that possibly has compatible issue. |
i tested plugin version in marketplace and metaverse in github
working fine. |
maybe update windows? |
Windows 10 64 bit up-to-date. Rpc: https://evm-dev-t3.cronos.org/ I'm able to get balance and transfer tokens using ERC20 functions so I really can't understand what's the problem with the connect wallet and qr code, the invalid client etc. Also tested RPC: https://evm-dev.cronos.org/ Still an Invalid client error and the UnsupportedCriticalExtension one. |
Hi @elai950 Simply open the uproject then click play. Would like to know if it is still the same. |
Yea, that's what I did. Still has the same error. |
You can uninstall the plugin installed by marketplace and try again, since the demo already includes the plugin. |
QR is only generated if the session was created between your machine and walletconnect's server. Try to disable VPN or change another network. |
Not using VPN. |
ok, let me double check. |
i see, i'll check further |
reproduced by setting time to incorrect one
but not the same error |
i uploaded to test tls
if it runs fine, unreal plugin will also work, qrcode will be displayed |
When trying the clone command you wrote here it failed with an error about SSH. |
window_build.bat will compile it. i'm wondering whether demo.exe runs successfully |
@elai950 , could you try with ssh first?
if that works, we can assume that https working good. |
That's the error when trying to clone using ssh. |
ok, just ssh issue |
source & setup
compile & run
|
thanks, i can reduce the problem area |
replaced ssh with https, could you retry again?
|
reproduced on windows 11, debugging now |
@elai950 , when calling ConnectWalletConnect,
cronos-labs/play-cpp-sdk#426 |
Yea but for this URL I need to run a Hardhat node for example, am I right? And in the URL assign the hardhat port. Can I use these settings? |
it should work, i'll check further. |
how about url like http://localhost:8080/ ? i think url is not rpc endpoint, it should be bridge url? |
Yes, the same results. |
how about url as |
Same results.
|
don't call ConnectWalletConnect first.(don't have session info, so empty client, ensure_session fails) call InitializeWalletConnect first, then check true is displayed. because ConnectWalletConnect restores Client, it's different one |
I did all the tests on both Init and Connect just to be sure. I think that first, we need to solve the session problem. |
yes, so it's like this
ConnectWalletConnect is for restoring session,(after first pairing, saved to disk?) , maybe you can use later |
Yes, I first call the InitializeWalletConnect. The last line, assert. if the client is invalid the whole process fails with that Invalid Client error which resulting UnsupportedCriticalExtension. I might be wrong I'm not pretending to understand how the whole code works but from my understanding first, the client bug should be resolved. BTW, |
yes, it should work. strange i'll do the same today to reproduce
unreal has special place to save, |
i'm checking ConnectWalletConnect now |
I'm failing in the callback of InitializeWalletConnect with success == false. |
@elai950 could you check one more test?
if above works, very strange, some issues in plugin code |
found similar issue: snapview/tokio-tungstenite#231 |
changed root certificate type |
Tried this, and got the same error:
|
thanks, for testing currently, we're using native , which is dependent to user's system setting, after this pr, merged, we will ship to our next plugin release |
Hey guys, |
I noticed @leejw51crypto posted a new commit on play-cpp-sdk which is the library that used in play-unreal-plugin. I guess, it possibly fixed the issue. But we haven't brought it to play-unreal-unreal, likely be released at next version (v0.0.20-alpha). Would you @elai950 like to try it out? It builds alongs wallet_connect.exe example which initialises the wallet_connect and print the QR code. Kindly know that please install python and msvc, you can check how we build in CI: https://github.com/cronos-labs/play-cpp-sdk/blob/main/.github/workflows/win-build.yml Once QR is shown, the problem should be fixed. |
Hey guys, |
Walletconnect 1.0 is about to sunset, @leejw51crypto is working on walletconnect 2.0. You can try once it is ready. |
PlayCppSdk InitializeWalletConnect Error: socket error: TLS error: webpki error: UnsupportedCriticalExtension
Getting from EnsureSession error: invalid client
The text was updated successfully, but these errors were encountered: