Open leejw51crypto opened 1 year ago
trying to reproduce on windows
Just to clarify, I'm getting PlayCppSdk InitializeWalletConnect Error: socket error: TLS error: webpki error: UnsupportedCriticalExtension
when I call ConnectWalletConnect
function.
And from EnsureSession
function the message is: EnsureSession error: invalid client
.
All the Erc20 functions in DefiWalletCoreActor
works perfectly so I assume that my configurations are correct.
I did some digging and I've found something that might be related. EnsureSession shows an Invalid client.
I noticed this warning while compiling:
'E:\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace\CronosPlay\Source\ThirdParty\PlayCppSdkLibrary\Lib\Win64\play_cpp_sdk.lib' does not exist
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\Ncrypt.lib' does not exist.
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\userenv.lib' does not exist.
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\bcrypt.lib' does not exist.
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\ntdll.lib' does not exist.
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\Secur32.lib' does not exist.
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\crypt32.lib' does not exist.
'E:\Program Files\Epic Games\UE_5.1\Engine\Source\ws2_32.lib' does not exist.
Check the file PlayCppSdkLibrary.Build.cs
.
The first line which is play_cpp_sdk.lib
is actually exactly where the address says he isn't (??).
All the rest really don't exist.
Tried to reinstall the plugin but that didn't work.
So in PlayCppSdkLibrary.Build.cs
, you have a condition for Win64 platform type, and you're adding those files that one of them I have (but it says I don't) and all the others are missing so maybe that's related to why it isn't working.
ok, i'll check on windows
Opened a new blank project and still had the same Invalid Client error. Tried with UE 5.0 (using 5.1 as the main version) and installed the plugin fresh and still the same.
Windows 10 64-bit. I'm trying to debug the code now. Wish I could help somehow to solve that problem.
thanks, i'm checking now. started for this issue
It is working fine in my setting, what chain_id and rpc are you using? @elai950 @leejw51crypto
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.
Please make sure the chain_id and rpc settings are correct: https://github.com/cronos-labs/play-unreal-demo/blob/main/Metaverse/Source/Metaverse/Private/Components/WalletConnectTriggerComponent.cpp#L42 https://github.com/cronos-labs/play-unreal-demo/blob/main/Metaverse/Source/Metaverse/Private/Components/DefiWalletCoreComponent.cpp#L33-L34
i tested plugin version in marketplace and metaverse in github , modified metaverse uproject
{
"Name": "CronosPlayUnreal",
"Enabled": true
}
working fine. can be os issue or visual studio ? os: windows 11 visual studio: visual studio 2019
maybe update windows?
Windows 10 64 bit up-to-date. Visual Studio 2022, was compiled successfully. UE 5.1.1
Rpc: https://evm-dev-t3.cronos.org/ Chain Id: 338
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/ And Chain Id: 25
Still an Invalid client error and the UnsupportedCriticalExtension one.
Hi @elai950 To make it simple first, would you able to download the demo project and test with it first?
Simply open the uproject then click play.
Would like to know if it is still the same.
Hi @elai950 To make it simple first, would you able to download the demo project and test with it first?
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. I ran the project and started walking towards the connect widget, the text changed to Scan QR code but no qr has appeared. If I debug it I get an Invalid Client from the session and UnsupportedCriticalExtension. I feel like I forgot to do something, besides just installing the plugin from the Epic launcher.
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. Using the default windows defender (if it's related somehow). Can understand what's the problem here. Tried reinstalling it but had no luck.
This is the logs
ok, let me double check.
i see, i'll check further maybe we need to upgrade tls module used by play-cpp-sdk? by some reason, tls certificate from wc 1.0 is not received by our tls module.
reproduced by setting time to incorrect one
wallet connect error=socket error: IO error: invalid peer certificate contents: invalid peer certificate: CertNotValidYet
but not the same error
i uploaded to test tls https://github.com/leejw51crypto/play-cpp-sdk/tree/tls
if it runs fine, unreal plugin will also work, qrcode will be displayed
i uploaded to test tls https://github.com/leejw51crypto/play-cpp-sdk/tree/tls
- install rust
- install visual studio 2019
- git clone git@github.com:leejw51crypto/play-cpp-sdk.git
- git checkout tls
- cd play-cpp-sdk
- window_build.bat , ignore cmake errors
- cd demo\demo\x64\Release
- demo.exe
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. So I cloned it using HTTP but no .exe file was found anywhere (did the build before that). I had only debug folder in demo/demo/x64/Debug.
window_build.bat will compile it. you need cmake, visual studio 2019 installed beforehand.
i'm wondering whether demo.exe runs successfully
@elai950 , could you try with ssh first?
git clone https://github.com/leejw51crypto/play-cpp-sdk.git
if that works, we can assume that https working good.
- git clone git@github.com:leejw51crypto/play-cpp-sdk.git
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
That's the error when trying to clone using ssh.
ok, just ssh issue
or just
if https connectiong with wc 1.0 server is ok, qr code will be displayed
if not , the same error will appear TLS error: webpki error: UnsupportedCriticalExtension
Used the Developer Command Prompt v17.5.3 VS 2022 I tried that but the build failed. That's the error and the command (the whole process).
Still, no demo.exe file exists.
C:\play-cpp-sdk\demo>msbuild .\demo.sln -t:rebuild -property:Configuration=Release /p:Platform=x64
MSBuild version 17.5.1+f6fdcf537 for .NET Framework
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 13/04/2023 19:06:53.
Included response file: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.rsp
Project "C:\play-cpp-sdk\demo\demo.sln" on node 1 (rebuild target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "C:\play-cpp-sdk\demo\demo.sln" (1) is building "C:\play-cpp-sdk\demo\demo\demo.vcxproj" (2) on node 1 (Rebuild
target(s)).
PrepareForBuild:
Creating directory "x64\Release\demo.tlog\".
InitializeBuildStatus:
Creating "x64\Release\demo.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
PreBuildEvent:
cd ..
call C:\play-cpp-sdk\demo\pre_build.bat
:VCEnd
Submodule 'defi-wallet-core-rs' (git@github.com:crypto-com/defi-wallet-core-rs.git) registered for path 'defi-wallet-
core-rs'
Submodule 'demo/third_party/easywsclient' (git@github.com:dhbaird/easywsclient.git) registered for path 'demo/third_p
arty/easywsclient'
Submodule 'demo/third_party/json' (git@github.com:nlohmann/json.git) registered for path 'demo/third_party/json'
Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet-
core-rs' failed
Failed to clone 'defi-wallet-core-rs'. Retry scheduled
Cloning into 'C:/play-cpp-sdk/demo/third_party/easywsclient'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:dhbaird/easywsclient.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/easyw
sclient' failed
Failed to clone 'demo/third_party/easywsclient'. Retry scheduled
Cloning into 'C:/play-cpp-sdk/demo/third_party/json'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:nlohmann/json.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/json' failed
Failed to clone 'demo/third_party/json'. Retry scheduled
Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet-
core-rs' failed
Failed to clone 'defi-wallet-core-rs' a second time, aborting
Traceback (most recent call last):
File "C:\play-cpp-sdk\demo\helper.py", line 218, in <module>
copy_example_files(".")
File "C:\play-cpp-sdk\demo\helper.py", line 145, in copy_example_files
shutil.copy(f, output_path)
File "C:\Python311\Lib\shutil.py", line 419, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Python311\Lib\shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../defi-wallet-core-rs/example/cpp-example/chainmain.cc'
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demo\demo.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demo\demo.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demo\demo.vcxproj]
Done Building Project "C:\play-cpp-sdk\demo\demo\demo.vcxproj" (Rebuild target(s)) -- FAILED.
Project "C:\play-cpp-sdk\demo\demo.sln" (1) is building "C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj" (3) on nod
e 1 (Rebuild target(s)).
PrepareForBuild:
Creating directory "x64\Release\demostatic.tlog\".
InitializeBuildStatus:
Creating "x64\Release\demostatic.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
PreBuildEvent:
cd ..
call C:\play-cpp-sdk\demo\pre_build.bat
:VCEnd
Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet-
core-rs' failed
Failed to clone 'defi-wallet-core-rs'. Retry scheduled
Cloning into 'C:/play-cpp-sdk/demo/third_party/easywsclient'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:dhbaird/easywsclient.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/easyw
sclient' failed
Failed to clone 'demo/third_party/easywsclient'. Retry scheduled
Cloning into 'C:/play-cpp-sdk/demo/third_party/json'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:nlohmann/json.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/json' failed
Failed to clone 'demo/third_party/json'. Retry scheduled
Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet-
core-rs' failed
Failed to clone 'defi-wallet-core-rs' a second time, aborting
Traceback (most recent call last):
File "C:\play-cpp-sdk\demo\helper.py", line 218, in <module>
copy_example_files(".")
File "C:\play-cpp-sdk\demo\helper.py", line 145, in copy_example_files
shutil.copy(f, output_path)
File "C:\Python311\Lib\shutil.py", line 419, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Python311\Lib\shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../defi-wallet-core-rs/example/cpp-example/chainmain.cc'
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj]
Done Building Project "C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj" (Rebuild target(s)) -- FAILED.
Done Building Project "C:\play-cpp-sdk\demo\demo.sln" (rebuild target(s)) -- FAILED.
Build FAILED.
"C:\play-cpp-sdk\demo\demo.sln" (rebuild target) (1) ->
"C:\play-cpp-sdk\demo\demo\demo.vcxproj" (Rebuild target) (2) ->
(PreBuildEvent target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5):
error MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demo\demo.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demo\demo.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demo\demo.vcxproj]
"C:\play-cpp-sdk\demo\demo.sln" (rebuild target) (1) ->
"C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj" (Rebuild target) (3) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5):
error MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e
rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj]
0 Warning(s)
2 Error(s)
yes, that's because git bring modules via ssh, could you register your ssh for github? then it will work
i will install fresh windows 11 and check again
checked vpn, cannot reproduce
i added code for test
if https working fine , this will be printed
Running `target/debug/test-tls`
WebSocket connection established!
WebSocket connection closed.
this output will appear
@elai950 , it think this rust code would be simpler to test.
i added code for test
- install rust on windows
- git clone https://github.com/leejw51crypto/play-cpp-sdk.git
- cd play-cpp-sdk
- git checkout tls
- cd test-tls
- cargo run
if https working fine , this will be printed
Running `target/debug/test-tls` WebSocket connection established! WebSocket connection closed.
this output will appear
@elai950 , it think this rust code would be simpler to test.
I got this:
PS C:\play-cpp-sdk\test-tls> cargo run
Updating crates.io index
error: failed to get `defi-wallet-core-common` as a dependency of package `extra-cpp-bindings v0.1.0 (C:\play-cpp-sdk\extra-cpp-bindings)`
Caused by:
failed to load source for dependency `defi-wallet-core-common`
Caused by:
Unable to update C:\play-cpp-sdk\defi-wallet-core-rs\common
Caused by:
failed to read `C:\play-cpp-sdk\defi-wallet-core-rs\common\Cargo.toml`
Caused by:
The system cannot find the path specified. (os error 3)
But this is much simpler indeed.
thanks, i'll check more
try this one
Yes, it worked
WebSocket connection established!
WebSocket connection closed.
thanks, i can reduce the problem area installing windows 10 + visual studo 2022
replaced ssh with https, could you retry again?
Used the Developer Command Prompt v17.5.3 VS 2022 I tried that but the build failed. That's the error and the command (the whole process).
Still, no demo.exe file exists.
C:\play-cpp-sdk\demo>msbuild .\demo.sln -t:rebuild -property:Configuration=Release /p:Platform=x64 MSBuild version 17.5.1+f6fdcf537 for .NET Framework Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. Build started 13/04/2023 19:06:53. Included response file: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.rsp Project "C:\play-cpp-sdk\demo\demo.sln" on node 1 (rebuild target(s)). ValidateSolutionConfiguration: Building solution configuration "Release|x64". Project "C:\play-cpp-sdk\demo\demo.sln" (1) is building "C:\play-cpp-sdk\demo\demo\demo.vcxproj" (2) on node 1 (Rebuild target(s)). PrepareForBuild: Creating directory "x64\Release\demo.tlog\". InitializeBuildStatus: Creating "x64\Release\demo.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. PreBuildEvent: cd .. call C:\play-cpp-sdk\demo\pre_build.bat :VCEnd Submodule 'defi-wallet-core-rs' (git@github.com:crypto-com/defi-wallet-core-rs.git) registered for path 'defi-wallet- core-rs' Submodule 'demo/third_party/easywsclient' (git@github.com:dhbaird/easywsclient.git) registered for path 'demo/third_p arty/easywsclient' Submodule 'demo/third_party/json' (git@github.com:nlohmann/json.git) registered for path 'demo/third_party/json' Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet- core-rs' failed Failed to clone 'defi-wallet-core-rs'. Retry scheduled Cloning into 'C:/play-cpp-sdk/demo/third_party/easywsclient'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:dhbaird/easywsclient.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/easyw sclient' failed Failed to clone 'demo/third_party/easywsclient'. Retry scheduled Cloning into 'C:/play-cpp-sdk/demo/third_party/json'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:nlohmann/json.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/json' failed Failed to clone 'demo/third_party/json'. Retry scheduled Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet- core-rs' failed Failed to clone 'defi-wallet-core-rs' a second time, aborting Traceback (most recent call last): File "C:\play-cpp-sdk\demo\helper.py", line 218, in <module> copy_example_files(".") File "C:\play-cpp-sdk\demo\helper.py", line 145, in copy_example_files shutil.copy(f, output_path) File "C:\Python311\Lib\shutil.py", line 419, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "C:\Python311\Lib\shutil.py", line 256, in copyfile with open(src, 'rb') as fsrc: ^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../defi-wallet-core-rs/example/cpp-example/chainmain.cc' C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demo\demo.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demo\demo.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demo\demo.vcxproj] Done Building Project "C:\play-cpp-sdk\demo\demo\demo.vcxproj" (Rebuild target(s)) -- FAILED. Project "C:\play-cpp-sdk\demo\demo.sln" (1) is building "C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj" (3) on nod e 1 (Rebuild target(s)). PrepareForBuild: Creating directory "x64\Release\demostatic.tlog\". InitializeBuildStatus: Creating "x64\Release\demostatic.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. PreBuildEvent: cd .. call C:\play-cpp-sdk\demo\pre_build.bat :VCEnd Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet- core-rs' failed Failed to clone 'defi-wallet-core-rs'. Retry scheduled Cloning into 'C:/play-cpp-sdk/demo/third_party/easywsclient'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:dhbaird/easywsclient.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/easyw sclient' failed Failed to clone 'demo/third_party/easywsclient'. Retry scheduled Cloning into 'C:/play-cpp-sdk/demo/third_party/json'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:nlohmann/json.git' into submodule path 'C:/play-cpp-sdk/demo/third_party/json' failed Failed to clone 'demo/third_party/json'. Retry scheduled Cloning into 'C:/play-cpp-sdk/defi-wallet-core-rs'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:crypto-com/defi-wallet-core-rs.git' into submodule path 'C:/play-cpp-sdk/defi-wallet- core-rs' failed Failed to clone 'defi-wallet-core-rs' a second time, aborting Traceback (most recent call last): File "C:\play-cpp-sdk\demo\helper.py", line 218, in <module> copy_example_files(".") File "C:\play-cpp-sdk\demo\helper.py", line 145, in copy_example_files shutil.copy(f, output_path) File "C:\Python311\Lib\shutil.py", line 419, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "C:\Python311\Lib\shutil.py", line 256, in copyfile with open(src, 'rb') as fsrc: ^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../defi-wallet-core-rs/example/cpp-example/chainmain.cc' C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj] Done Building Project "C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj" (Rebuild target(s)) -- FAILED. Done Building Project "C:\play-cpp-sdk\demo\demo.sln" (rebuild target(s)) -- FAILED. Build FAILED. "C:\play-cpp-sdk\demo\demo.sln" (rebuild target) (1) -> "C:\play-cpp-sdk\demo\demo\demo.vcxproj" (Rebuild target) (2) -> (PreBuildEvent target) -> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demo\demo.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demo\demo.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demo\demo.vcxproj] "C:\play-cpp-sdk\demo\demo.sln" (rebuild target) (1) -> "C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj" (Rebuild target) (3) -> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "cd .. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: call C:\play-cpp-sdk\demo\pre_build.bat [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(149,5): e rror MSB3073: :VCEnd" exited with code 1. [C:\play-cpp-sdk\demo\demostatic\demostatic.vcxproj] 0 Warning(s) 2 Error(s)
reproduced on windows 11, debugging now
@elai950 , when calling ConnectWalletConnect,
http://localhost:8080/
https://github.com/cronos-labs/play-cpp-sdk/issues/426 i will fix this issue~
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. Because this doesn't work either, I tried putting http://localhost:8545/ while running hardhat node and same results.
Can I use these settings? Rpc: https://evm-dev-t3.cronos.org/ Chain Id: 338
it should work, i'll check further. it's connected via websocket http-> ws https-> wss
maybe setup like this?
Tried that, and also tried running localhost with a hardhat node but same result in all of them. Every URL combination, every chain id 25 or 338 all was the same error.
Both ConnectWalletConnect and InitializeWalletConnect.
how about url like http://localhost:8080/ ?
the same error TLS error: webpki error: UnsupportedCriticalExtension
displayed?
i think url is not rpc endpoint, it should be bridge url?
Yes, the same results. Tried both localhost:8545 and 8080. While running a hardhat node. Tried to disable the firewall as well thought it might be a reason for that but no.
how about url as http://127.0.0.1
?
without port
Same results. Tried just now. Exactly the same settings.
(CustomEvent) PlayCppSdk InitializeWalletConnect Error: socket error: TLS error: webpki error: UnsupportedCriticalExtension
PlayCppSdk InitializeWalletConnect Error: socket error: TLS error: webpki error: UnsupportedCriticalExtension Getting from EnsureSession error: invalid client