Nir Diwakar (Nir)
11/19/2024, 11:05 AMrequests.exceptions.ConnectionError: HTTPSConnectionPool(host='<http://login.microsoftonline.com|login.microsoftonline.com>', port=443): Max retries exceeded with url: /b5953ddd-dd80-4110-904b-e503716f0caf/oauth2/v2.0/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7b99afdc5ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
To handle this I am keeping the prepare_request
method in try except block and raising RetriableAPIError
, but the retries aren't happening. Should I handle this in a different way?
from the traceback the following exceptions happen:
⢠requests.exceptions.ConnectionError
⢠urllib3.exceptions.MaxRetryError
⢠socket.gaierrorReuben (Matatika)
11/19/2024, 11:55 AMvalidate_reponse
if the default implementation doesn't meet your needs: https://sdk.meltano.com/en/v0.42.1/classes/singer_sdk.RESTStream.html#singer_sdk.RESTStream.validate_responseNir Diwakar (Nir)
11/19/2024, 11:57 AMReuben (Matatika)
11/19/2024, 12:02 PMrequests.exceptions.ConnectionError
is already retried by default. You can see that from the log you posted:
> Max retries exceeded with url: /b5953ddd-dd80-4110-904b-e503716f0caf/oauth2/v2.0/token
Reuben (Matatika)
11/19/2024, 12:06 PMbackoff_max_tries
? Default is `5`: https://github.com/meltano/sdk/blob/eabc4d7036ba01ee529ed353c049a421124b83ee/singer_sdk/streams/rest.py#L669.Nir Diwakar (Nir)
11/19/2024, 12:10 PMReuben (Matatika)
11/19/2024, 12:32 PMrequests.exceptions.ConnectionError
it should be retried by MeltanoNir Diwakar (Nir)
11/19/2024, 1:11 PMvisch
11/19/2024, 1:28 PMNir Diwakar (Nir)
11/19/2024, 1:50 PMvisch
11/19/2024, 1:51 PMReuben (Matatika)
11/19/2024, 2:00 PM