-
Notifications
You must be signed in to change notification settings - Fork 739
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
After installing signClient connection Node.js app is crashing with walletConnect Core error. #5588
Comments
Hello, I am getting the exact same issue but I use @walletconnect/ethereum-provider instead. |
To reproduce fetch https://github.com/Fbartoli/safe-terminal You can connect a wallet but not necessarily. the program will crash after 1 or 2 minutes. |
I looked at the monorepo source code and it looks like the crash is happening on this line of code:
I changed the heartBeatTimeout value to 5 minutes on line 95 and the program lived longer, but it still crashed eventually if the connection wasn't destroyed before the timer expired. |
I tried to do the same with ethereum-provider, but the result is the same. The latest version of monorepo also does not change anything, the program crashes. |
Is there an assumption that is valid for web environments that isn't true for telegram and terminal app ? |
It indeed crashes there. Not sure why though as in node, it should use |
we have many apps running the SDKs in terminal environments just fine. I suspect the |
Implemented a fix #5691 |
Thank you |
Thank you, it is working ))) |
Discussed in https://github.com/orgs/WalletConnect/discussions/5587
Originally posted by Gostai January 10, 2025
A Minimal Reproducible Example
It is a simple telegram bot with node-telegram-bot-api. I'm using this files:
package.json
tsconfig.json
.env
and /src folder with two files:
first for bot implemetation
bot.ts
and second for signClient usage with Node.js
main.ts
I use
Everything is compiling and starting well. I send a message to the bot and it is replying me with the QRcode that I am using with Metamask to connect to BASE Sepolia network. Console is logging my Metamask address and even more, if I send some requests with the connection, they all working well, but not for a long time. Even on this MRE Bot crashes after about 2 minutes of working fine
with ./node_modules/@walletconnect/core/dist/index.cjs.js:1
Here I provide all the console output
The problem is in @walletconnect/core/dist/index.cjs.js in wt/constructor/resetPingTimeout/setTimeout callback()
I am working on Ubuntu, Node.js 22.11.0, not using walletConnectModal.openModal({ uri }) because of using Telegram Bot frontend Opening QRcodes with MetaMask
Expected behavior
Connection must be successfull and must not result the breaking of the all Bot App.
The text was updated successfully, but these errors were encountered: