the metric is there but it's always 0 even though the time-out / error was there. We need to check if we handle the errors properly before reraising them
TimeoutError: timed out
File "urllib3/connection.py", line 203, in _new_conn
sock = connection.create_connection(
File "urllib3/util/connection.py", line 85, in create_connection
raise err
File "urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f5f44663690>, 'Connection to api.groovestats.com timed out. (connect timeout=12)')
File "urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "urllib3/connectionpool.py", line 1096, in _validate_conn
conn.connect()
File "urllib3/connection.py", line 611, in connect
self.sock = sock = self._new_conn()
File "urllib3/connection.py", line 212, in _new_conn
raise ConnectTimeoutError(
MaxRetryError: HTTPSConnectionPool(host='api.groovestats.com', port=443): Max retries exceeded with url: /score-submit.php?maxLeaderboardResults=10&chartHashP1=ca79480a95d947f8 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f5f44663690>, 'Connection to api.groovestats.com timed out. (connect timeout=12)'))
File "requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
ConnectTimeout: HTTPSConnectionPool(host='api.groovestats.com', port=443): Max retries exceeded with url: /score-submit.php?maxLeaderboardResults=10&chartHashP1=ca79480a95d947f8 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f5f44663690>, 'Connection to api.groovestats.com timed out. (connect timeout=12)'))
File "boogiestats/boogie_api/views.py", line 270, in score_submit
gs_response = requests.post(
File "requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "requests/adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
the metric is there but it's always 0 even though the time-out / error was there. We need to check if we handle the errors properly before reraising them
Related errors: