Open
Description
I am running the script on a Raspberry Pi Zero 2 W with Raspbian Lite installed.
Everything is updated to the newest Version (Python Version: 3.9.2, did not try 3.10.x).
I configured everything and the bot ran fine for a while. Since a week or so i get the following output:
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connection.py", line 416, in connect
self.sock = ssl_wrap_socket(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/gateio-crypto-trading-bot-binance-announcements-new-coins/src/main.py", line 47, in <module>
supported_currencies = get_all_currencies(single=True)
File "/home/pi/gateio-crypto-trading-bot-binance-announcements-new-coins/src/new_listings_scraper.py", line 173, in get_all_currencies
all_currencies = ast.literal_eval(str(spot_api.list_currencies()))
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/api/spot_api.py", line 57, in list_currencies
return self.list_currencies_with_http_info(**kwargs) # noqa: E501
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/api/spot_api.py", line 111, in list_currencies_with_http_info
return self.api_client.call_api(
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/api_client.py", line 395, in call_api
return self.__call_api(
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/api_client.py", line 190, in __call_api
response_data = self.request(
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/api_client.py", line 447, in request
return self.rest_client.GET(
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/rest.py", line 237, in GET
return self.request(
File "/home/pi/.local/lib/python3.9/site-packages/gate_api/rest.py", line 218, in request
r = self.pool_manager.request(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/request.py", line 74, in request
return self.request_encode_url(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/request.py", line 96, in request_encode_url
return self.urlopen(method, url, **extra_kw)
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 375, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen
return self.urlopen(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen
return self.urlopen(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen
return self.urlopen(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/home/pi/.local/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.gateio.ws', port=443): Max retries exceeded with url: /api/v4/spot/currencies (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)')))
I tried the following:
Saved the config files as well as the order.json and made a clean install on the raspberry pi with everything setup again but with no luck.
I also updated gate-api, openssl and requests to newest version without luck.
Best regards
Activity