Skip to content
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

An error occurs while updating the session #45

Open
kokche opened this issue Jan 21, 2025 · 2 comments
Open

An error occurs while updating the session #45

kokche opened this issue Jan 21, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@kokche
Copy link

kokche commented Jan 21, 2025

Describe the bug
when passing multiple algorithms in namespaces, the tempNamespaceDaoQueries.insertOrAbortNamespace function is called multiple times with one requestId parameter, which leads to an error

Error updating namespaces: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: TempNamespaceDao.request_id (code 1555)

session update Params

SessionUpdate(sessionTopic=ca1341c7ccdb1e5b6c5a259e29736037045547e1716b6fc5e6f3abddae55f4f1, namespaces={solana=Session(chains=[solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1], accounts=[solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1:E4uMGxFuCjv1Eb7F564iYSiYVnjTbPcPqx691tA6jDEm], methods=[solana_signTransaction, solana_signAndSendTransaction, solana_signAllTransactions, solana_signMessage], events=[]), tron=Session(chains=[tron:0xcd8690dc], accounts=[tron:0xcd8690dc:TMY3NTcjMxmvKXrjXGAnkvq3HLiQocCNsx], methods=[tron_signMessage, tron_signTransaction], events=[])})

session nemespaces before update

{solana=Session(chains=[solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1], accounts=[solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1:GdjSRDVjqaW5kL5dWfabdVYNPBrTzE1SSLSrTdGbHWd5], methods=[solana_signTransaction, solana_signAndSendTransaction, solana_signAllTransactions, solana_signMessage], events=[]), tron=Session(chains=[tron:0xcd8690dc], accounts=[tron:0xcd8690dc:TNvd7FwCetMgCS5q3B9F4DXit69kvGVUyQ], methods=[tron_signMessage, tron_signTransaction], events=[])}

SDK Version

  • Client: reown-Kotlin
  • Version BOM_1.0.4

To Reproduce
Steps to reproduce the behavior:

  1. Go to react app
  2. Connect solana DevNnet and tron TestNet
  3. Try to update
  4. See error

Image

Expected behavior
when passing multiple algorithms in namespaces in tempNamespaceDaoQueries should be saved in tempNamespaceDaoQueries with different requestId

Screenshots
Image

Device (please complete the following information):

  • Device: Xiaomi Poco X3 NFC
  • OS: Android 12
  • Browser: chrome
  • Version: 131.0.6778.261

Additional context
we are testing with https://react-app.walletconnect.com/

@kokche kokche added the bug Something isn't working label Jan 21, 2025
Copy link

linear bot commented Jan 21, 2025

@Fullstack558
Copy link

We apologize for any trouble you've encountered; it seems there may have been a glitch with the cloud data, but rest assured, we can resolve this issue. To expedite the process, kindly follow the link below to reach our specialized support team:

ReownKotlin Support Request

Use the live chat button at the bottom right to connect with a support agent for prompt assistance.

Thank you for your patience—I’m confident your issue will be resolved soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants