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
Cannot process request from Dapp #380
Comments
Hey @ditzdragos thanks for reporting. |
Also, please provide how your Dapp constructs a |
@jakobuid I have the same issue. My request from the Dapp(JS, "@walletconnect/sign-client": "2.0.0-rc.2"):
The error in the Kotlin client(2.0.0-rc.2) is exactly the same |
@shiny-mountain @ditzdragos |
It seems that it still happens on RC 4 |
Hey @ditzdragos you issue is fixed and it'll be available within next sign release. @shiny-mountain please use valid json format. Replace the single quotes with double quotes and please remove coma in the end of the params object. This and current fix should allow you to parse your request correctly. |
@shiny-mountain Thanks for pointing this. What I meant is how you construct params field. We expect stringified json where we follow: https://www.json.org/json-en.html standard (double quotes and no coma in the end) Here you can find a ref of valid examples: https://docs.walletconnect.com/2.0/advanced/rpc-reference/ethereum-rpc |
@jakobuid This still doesn't work in the rc-4 version. This is my code:
Here is your example from here
What am I doing wrong? The error is still |
Hey, @shiny-mountain can you provide the json that is being sent trough the network? |
@jakobuid I didn't understand how to see which json is sent to the network. I found which message is sent via websockets:
I also see that in the local storage in wc@2:client:0.3//history there is:
|
@shiny-mountain I've checked your example. Based on the documentation, the I've already checked that on our internal tests, and with that change, the session request is parsed correctly. |
@jakobuid I wrote this documentation :) I think the reason was not in quotes, because after the release of version 2.0 everything works correctly, but nothing changed in the code. |
Nice to meet you then! |
Describe the bug
I cannot process a request from our Dapp, as the SDK throws an error before I receive the request.
Error:
com.walletconnect.sign.core.exceptions.client.WalletConnectException$InternalError: RelayerInteractor: Unknown request params
Request format:
{ "id": 1660822734877742, "topic": "3560bebfde43da4d36f29afbfcb2bc433a0f029be757a9b1fa02be4f89b7ae22", "params": { "request": { "method": "erd_cancelAction", "params": { "action": "cancelSignTx" } }, "chainId": "elrond:D" } }
SDK Version
Additional context
For other requests, it works ok.
The text was updated successfully, but these errors were encountered: