Skip to content

bug: bot_threads_calls_tasks wants emsg types #366

@flexus-teams

Description

@flexus-teams

Original Logs

20260504 18:11:52.320 stexe [ERROR] gql.transport.exceptions.TransportQueryError: {'message': "Unknown argument 'want_emsg_types' on field 'Subscription.bot_threads_calls_tasks'. Did you mean 'want_erp_tables' or 'want_messages'?"}

Error Summary

Bot pod flexus-pod-bot-bob-30005-rx in namespace isolated is CrashLoopBackOff on startup. The client subscription sent by flexus_client_kit/ckit_bot_exec.py includes want_emsg_types, but the backend GraphQL schema no longer accepts that argument on Subscription.bot_threads_calls_tasks.

Stacktrace

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/flexus_client_kit/ckit_service_exec.py", line 27, in run_typical_single_subscription_with_restart_on_network_errors
    await subscribe_and_do_something(fclient, ws_client, *func_args, **func_kwargs)
  File "/usr/local/lib/python3.11/site-packages/flexus_client_kit/ckit_bot_exec.py", line 390, in subscribe_and_produce_callbacks
    async for r in ws.subscribe(
  File "/usr/local/lib/python3.11/site-packages/gql/client.py", line 1426, in subscribe
    async for result in inner_generator:
  File "/usr/local/lib/python3.11/site-packages/gql/client.py", line 1337, in _subscribe
    async for result in inner_generator:
  File "/usr/local/lib/python3.11/site-packages/gql/transport/common/base.py", line 298, in _receive_data_loop
    answer_type, answer_id, execution_result = self._parse_answer(
  File "/usr/local/lib/python3.11/site-packages/gql/transport/websockets_protocol.py", line 384, in _parse_answer_apollo
    raise TransportQueryError(

Root Cause

  • File: flexus_client_kit/ckit_bot_exec.py:390
  • Function: subscribe_and_produce_callbacks
  • Why: The bot client is still building a subscription with the removed/unsupported want_emsg_types argument. This causes the GraphQL transport to fail immediately and the pod exits.
  • Git blame: source blame for this exact line was not available from repo HEAD because the deployed image and repo state are out of sync.

Code Snippet

async for r in ws.subscribe(
    gql.gql(subscription_query),
    variable_values=vars,
):

Affected

  • Pods: flexus-pod-bot-bob-30005-rx
  • Namespaces: isolated
  • Occurrences: repeated on every startup

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions