Skip to content

Gateio - Unexpected error while listening to user stream #71

@rapcmia

Description

@rapcmia

Describe the bug

Tested by adding API keys getting unexpected error on every tick

Image
2025-07-23 04:08:26,069 - hummingbot.connector.exchange.gate_io.gate_io_api_user_stream_data_source.GateIoAPIUserStreamDataSource - ERROR - Unexpected error while listening to user stream. Retrying after 5 seconds...
Traceback (most recent call last):
  File "/opt/conda/envs/hummingbot-api/lib/python3.12/site-packages/hummingbot/core/data_type/user_stream_tracker_data_source.py", line 48, in listen_for_user_stream
    await self._process_websocket_messages(websocket_assistant=self._ws_assistant, queue=output)
  File "/opt/conda/envs/hummingbot-api/lib/python3.12/site-packages/hummingbot/core/data_type/user_stream_tracker_data_source.py", line 79, in _process_websocket_messages
    await self._process_event_message(event_message=data, queue=queue)
  File "/opt/conda/envs/hummingbot-api/lib/python3.12/site-packages/hummingbot/connector/exchange/gate_io/gate_io_api_user_stream_data_source.py", line 90, in _process_event_message
    raise IOError({
OSError: {'label': 'WSS_ERROR', 'message': 'Error received via websocket - empty currency pair list.'}

Note: Added API keys on hummingbot client and create v1/v2 strategy works ok

Steps to reproduce bug

  1. Add the API keys on dashboard or fastify endpoint using
    # POST /accounts/add-credential/{account_name}/{connector_name}
    curl -X 'POST' \
      'http://localhost:8000/accounts/add-credential/master_account/gate_io' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -u username:password \
      -d '{
      "gate_io_api_key": "add here",
      "gate_io_secret_key": "add here"
    }' | jq
    
  2. Check logs of hummingbot-api

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions