You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
TypeError: i.terminate is not a function at Timeout._onTimeout (/home/gorub/Documents/TONProjects/Novikov/MintBot/min/node_modules/@walletconnect/core/dist/index.cjs.js:1:41151) at listOnTimeout (node:internal/timers:594:17) at process.processTimers (node:internal/timers:529:7)
Here I provide all the console output
> [email protected] start
> node ./dist/main.js(node:13755) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.(Use `node --trace-deprecation ...` to show where the warning was created)(node:13755) [node-telegram-bot-api] DeprecationWarning: Buffers will have their filenames default to "filename" instead of "data". See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files for more information on how sending files has been improved and on how to disable this deprecation message altogether.(node:13755) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.account: eip155:84532:0xcd5acea374cd26ee5ccde225c1446d72036e21a3/home/../min/node_modules/@walletconnect/core/dist/index.cjs.js:1"use strict";Object.defineProperty( ... TypeError: i.terminate is not a function at Timeout._onTimeout (/home/gorub/Documents/TONProjects/Novikov/MintBot/min/node_modules/@walletconnect/core/dist/index.cjs.js:1:41151) at listOnTimeout (node:internal/timers:594:17) at process.processTimers (node:internal/timers:529:7)Node.js v22.11.0
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:
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: