Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Injective exchange - Failed to cancel order due to Request failed with status code 503 #6146

Closed
nikspz opened this issue Mar 14, 2023 · 1 comment

Comments

@nikspz
Copy link
Contributor

nikspz commented Mar 14, 2023

Release version
dev-1.14.0

Steps To Reproduce

  1. Create/start the strategy using injective exchange
  2. Check orders placed on injective
  3. stop the bot and pay attention to the logs pane/exchange

Actual:
Bot Failed to cancel orders on the exchange (status code 503)

Expected:
Orders cancelled successfully after bot stopped
Bot could handle status code 503

logs_injective-new-commit.log
315.zip

2023-03-14 18:52:13,858 - 256261 - hummingbot.connector.gateway.clob_spot.gateway_clob_spot.GatewayCLOBSPOT - NETWORK - Unexpected error cancelling orders.
Traceback (most recent call last):
  File "/home/ubuntu/batch6139/hummingbot/connector/exchange_py_base.py", line 409, in cancel_all
    cancellation_results = await safe_gather(*tasks, return_exceptions=True)
  File "/home/ubuntu/batch6139/hummingbot/core/utils/async_utils.py", line 22, in safe_gather
    return await asyncio.gather(*args, **kwargs)
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/batch6139/hummingbot/connector/exchange_py_base.py", line 416, in cancel_all
    successful_cancellations.append(CancellationResult(client_order_id, True))
  File "/home/ubuntu/miniconda3/envs/hummingbot/lib/python3.8/site-packages/async_timeout/__init__.py", line 55, in __aexit__
    self._do_exit(exc_type)
  File "/home/ubuntu/miniconda3/envs/hummingbot/lib/python3.8/site-packages/async_timeout/__init__.py", line 92, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
2023-03-14 18:52:13,859 - 256261 - hummingbot.connector.gateway.clob_spot.gateway_clob_spot.GatewayCLOBSPOT - WARNING - Failed to cancel order. Check API key and network connection.

image

Note:
Orders will be cancelled after restart of the bot and start the same strategy again

@rapcmia
Copy link
Contributor

rapcmia commented May 10, 2023

The latest updates for Injective protocol fixed this issue and will be available on the release of hummingbot version 1.16.0

@rapcmia rapcmia closed this as completed May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants