alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
625 stars 111 forks source link

"Not found predicate with id: .." results in RangeError. #288

Open furkan-demirci opened 11 months ago

furkan-demirci commented 11 months ago

Describe the bug I seem to get a long list of "Not found predicate with id: ..." logs which results in:

RangeError: Offset is outside the bounds of the DataView at DataView.getInt32 (<anonymous>) at Deserializer.int32 (C:\Projects\vouches-to-sql\node_modules\@mtproto\core\src\tl\deserializer\index.js:25:33) at Deserializer.predicate (C:\Projects\vouches-to-sql\node_modules\@mtproto\core\src\tl\deserializer\index.js:112:21) at Deserializer.vector (C:\Projects\vouches-to-sql\node_modules\@mtproto\core\src\tl\deserializer\index.js:89:22) at module.exports (C:\Projects\vouches-to-sql\node_modules\@mtproto\core\src\tl\parser\index.js:1203:21) at Deserializer.predicate (C:\Projects\vouches-to-sql\node_modules\@mtproto\core\src\tl\deserializer\index.js:121:15) at RPC.handleEncryptedMessage (C:\Projects\vouches-to-sql\node_modules\@mtproto\core\src\rpc\index.js:449:38) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

image

Code example I am using your guide "User Authorization" example. When authorised (which works fine) after a couple of seconds this error occurs.

code1

authoriseUser(): code

Context:

Additional context This issue or bug did not occur a few weeks ago with the same code so perhaps it's a change on Telegrams side?

bonkor commented 10 months ago

Try to update to 6.3.0. This helped fix this same error.