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

Failed Test PR #366 - Error fetching trading pairs for Polkadex #368

Closed
rxlxrxsx opened this issue Aug 28, 2023 · 2 comments
Closed

Failed Test PR #366 - Error fetching trading pairs for Polkadex #368

rxlxrxsx opened this issue Aug 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@rxlxrxsx
Copy link

rxlxrxsx commented Aug 28, 2023

Describe the bug

Getting this error on the terminal after starting the client. Despite the error, the client runs as expected.

Screen Shot 2023-08-28 at 10 53 37 AM
2023-08-28 10:55:59,151 - 10468 - hummingbot.core.utils.trading_pair_fetcher - ERROR - An error occurred when fetching trading pairs for polkadex.Please check the logs
Traceback (most recent call last):
  File "/Users/reiniersalazar/hbot-ca-polkadex/hummingbot/core/utils/trading_pair_fetcher.py", line 53, in fetch_all
    self._fetch_pairs_from_connector_setting(connector_setting=conn_setting)
  File "/Users/reiniersalazar/hbot-ca-polkadex/hummingbot/core/utils/trading_pair_fetcher.py", line 38, in _fetch_pairs_from_connector_setting
    connector = connector_setting.non_trading_connector_instance_with_default_configuration()
  File "/Users/reiniersalazar/hbot-ca-polkadex/hummingbot/client/settings.py", line 334, in non_trading_connector_instance_with_default_configuration
    connector = connector_class(**kwargs)
  File "/Users/reiniersalazar/hbot-ca-polkadex/hummingbot/connector/exchange/polkadex/polkadex_exchange.py", line 45, in __init__
    self._data_source = PolkadexDataSource(
  File "/Users/reiniersalazar/hbot-ca-polkadex/hummingbot/connector/exchange/polkadex/polkadex_data_source.py", line 68, in __init__
    self._substrate_interface = self._build_substrate_interface()
  File "/Users/reiniersalazar/hbot-ca-polkadex/hummingbot/connector/exchange/polkadex/polkadex_data_source.py", line 462, in _build_substrate_interface
    substrate_interface = SubstrateInterface(
  File "/Users/reiniersalazar/opt/anaconda3/envs/hummingbot/lib/python3.10/site-packages/substrateinterface/base.py", line 132, in __init__
    self.connect_websocket()
  File "/Users/reiniersalazar/opt/anaconda3/envs/hummingbot/lib/python3.10/site-packages/substrateinterface/base.py", line 177, in connect_websocket
    self.websocket = create_connection(
  File "/Users/reiniersalazar/opt/anaconda3/envs/hummingbot/lib/python3.10/site-packages/websocket/_core.py", line 608, in create_connection
    websock.connect(url, **options)
  File "/Users/reiniersalazar/opt/anaconda3/envs/hummingbot/lib/python3.10/site-packages/websocket/_core.py", line 253, in connect
    self.handshake_response = handshake(self.sock, url, *addrs, **options)
  File "/Users/reiniersalazar/opt/anaconda3/envs/hummingbot/lib/python3.10/site-packages/websocket/_handshake.py", line 57, in handshake
    status, resp = _get_resp_headers(sock)
  File "/Users/reiniersalazar/opt/anaconda3/envs/hummingbot/lib/python3.10/site-packages/websocket/_handshake.py", line 150, in _get_resp_headers
    raise WebSocketBadStatusException("Handshake status {status} {message} -+-+- {headers} -+-+- {body}".format(status=status, message=status_message, headers=resp_headers, body=response_body), status, status_message, resp_headers, response_body)
websocket._exceptions.WebSocketBadStatusException: Handshake status 429 Too Many Requests -+-+- {'content-type': 'text/plain', 'content-length': '45', 'date': 'Mon, 28 Aug 2023 16:55:58 GMT'} -+-+- b'Too many connections. Please try again later.'

Steps to reproduce

  1. Clone and install the branch
  2. Run the client
  3. After client start up, observe that the error appears in the terminal

Release version

1.19.0

Type of installation

Source

Attach required files

N/A

@rxlxrxsx rxlxrxsx added the bug Something isn't working label Aug 28, 2023
@rxlxrxsx rxlxrxsx linked a pull request Aug 28, 2023 that will close this issue
2 tasks
@petioptrv
Copy link

Polkadex has provided a new url, and I have updated the code. Please re-test. It should prevent the issue observed here.

@rxlxrxsx
Copy link
Author

Tested on commit b092456 and confirmed fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants