Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

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

@furkan-demirci

Description

@furkan-demirci

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:

  • Library version: 6.2.0
  • Node version: v20.5.1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions