From 69c10123dd5e71a352fb51075d38d80d5247ccee Mon Sep 17 00:00:00 2001 From: Alexandros Milaios Date: Tue, 4 Jun 2024 09:42:55 +0300 Subject: [PATCH] chore: update token expired error list --- .../connectors/source-hubspot/source_hubspot/streams.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-hubspot/source_hubspot/streams.py b/airbyte-integrations/connectors/source-hubspot/source_hubspot/streams.py index b41b9a867106..5b9c6584b06b 100644 --- a/airbyte-integrations/connectors/source-hubspot/source_hubspot/streams.py +++ b/airbyte-integrations/connectors/source-hubspot/source_hubspot/streams.py @@ -62,7 +62,11 @@ CUSTOM_FIELD_VALUE_TO_TYPE = {v: k for k, v in CUSTOM_FIELD_TYPE_TO_VALUE.items()} # strings, when are substrings of error messages should be retried -TOKEN_EXPIRED_ERROR = ["oauth-token is expired", "oauth token used to make this call expired"] +TOKEN_EXPIRED_ERROR = [ + "oauth-token is expired", + "oauth token used to make this call expired", + "is not valid for this request" +] TOKEN_REFRESH_RETRIES_EXCEEDED_ERROR = "Max retries exceeded with url: /oauth/v1/token"