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
pair() doesn't work for valid URIs in React Native / Android #4468
Comments
Hey @preetish-brine, could you double check that you're passing valid/unused pairing URI please. The |
Additionally, please make sure that you're subscribed to receive |
I have tried to clear caches and generate new URI schemes as well , doesnt seem to work, I am already aware of the cache issue and was facing the same while integrating deep link to sign client, used to make it run by doing clear cache and generating new URI schemes |
|
It seems that both useEffects
are run at the same time by |
I actually tested the sign client SDK in the similar pattern and it was working in that case, i think race condition is not the actual issue, Also i moved the pair to a callback initiated by a user button click and the behavior is same. my closest assumption of the reason of this issue is the relayer / event emitter is somehow not emitting the event |
@preetish-brine could you provide a minimal reproducible example of the issue please? |
Discussed in https://github.com/orgs/WalletConnect/discussions/4467
Originally posted by preetish-brine April 22, 2024
Hey guys, I worked on Migration of the SDK from sign-client "^2.2.1" to @walletconnect/web3wallet "^1.11.2", and I have been facing issues while triggering the pair function to pair to a Dapp URI to my wallet app, I have tried logging the web3wallet client and the pair function instances, nothing seems wrong in that and i am able to log the client instance.
However, the pair function goes into a loop for valid cases, If its a invalid URI, it is returning a Error as Invalid URI but for the else case it gets lost and doesnt trigger a sessionProposal event, I think there is an issue with the relayer subscription of wallet connect and the event emitter is not emitting the session proposal event, It also doesnt return a status of what actually happened inside the code.
The relayer doesnt send the event in the below session proposal event listener
web3WalletClient.on('session_proposal', onSessionProposal);
}, []);
However, the pair function goes into a loop for valid cases, If its a invalid URI, it is returning a Error as Invalid URI but for the else case it gets lost and doesnt trigger a sessionProposal event, I think there is an issue with the relayer subscription of wallet connect and the event emitter is not emitting the session proposal event, It also doesnt return a status of what actually happened inside the code.
Can you guys try resolving this on a prioirity, or is there any way to check the events of the relayer ?
The text was updated successfully, but these errors were encountered: