Skip to content

tg api --raw prints the result and never exits #69

Closed

Description

@neoromantic

tg api <method> --raw prints the raw TL result and then hangs: the process keeps running until it is killed, so scripts that use --raw never finish. Without --raw the command exits normally.

Likely cause: the --raw path returns before the client is closed, so mtcute's connection keeps the event loop alive.

Done when an e2e or unit test shows tg api help.getConfig --raw (with a mocked client) prints the result and exits with code 0, and the client is closed on that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions