GithubHelp home page GithubHelp logo

Comments (6)

Ajaxy avatar Ajaxy commented on May 16, 2024

Hi there. Thanks for the report. Do you know how to reproduce it?

from telegram-tt.

painor avatar painor commented on May 16, 2024
[ERROR] - [Unhandled error while receiving data]
[ERROR] - [Error: Could not find a matching Constructor ID for the TLObject that was supposed to be
        read with ID 253890367. Most likely, a TLObject was trying to be read when
         it should not be read. Remaining bytes: 480]

This error needs to be handled, because it can cause very serious problems in some places (e.g. chat list or message history not being loaded).

Fun fact: this error also often happens in Telethon, which GramJS is based on.

ID 253890367(which is f220f3f in hex) belongs to https://core.telegram.org/constructor/userFull in layer 105. Telegram sometimes returns data for the wrong layer and there isn't much we can do about since we don't save all past layers only the most recent one.

from telegram-tt.

ingria avatar ingria commented on May 16, 2024

Do you know how to reproduce it?

@Ajaxy no, it just happens randomly. I couldn't find any way to reproduce it.

ID 253890367(which is f220f3f in hex) belongs to userFull in layer 105.

@painor This error can happen with any constructor, not just this one.

Telegram sometimes returns data for the wrong layer and there isn't much we can do about

Yep, that's why it's necessary to catch this type of error and handle it somehow. Right now it can render the app unusable.

from telegram-tt.

Ajaxy avatar Ajaxy commented on May 16, 2024

Right now it can render the app unusable.

What does exactly happen? Do you have a screenshot?

from telegram-tt.

ingria avatar ingria commented on May 16, 2024

For example, this error may cause infinite archived chats loading:

The only way to open archived chats in that case is to reload the page.

from telegram-tt.

Ajaxy avatar Ajaxy commented on May 16, 2024

Fixed in cf2db92.

from telegram-tt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.