Skip to content

Encoding problem - workaround. Telegram returned an RPC error: A specified [entity offset or length](/api/entities#entity-length) is invalid #2

@kk010100

Description

@kk010100

Hello,

Got error after updating MadelineProto through docker.
Surfaced: Telegram returned an RPC error: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length (400) (ENTITY_BOUNDS_INVALID), caused by /app/vendor/danog/madelineproto/src/MTProtoSession/ResponseHandler.php:403
Revision: 8.1.1

Found the problem that one of my tables, where MadelineProto was fetching data from, was using utf8mb3_general_ci and another table was using utf8mb4_ai_ci.

**Fixed by changing the format of other table from utf8mb3_general_ci --> utf8mb4_ai_ci**

Hope this helps somebody with similiar problem.

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