fix: handle errors in AWS and Azure (#7482)

This commit is contained in:
Sergio Garcia
2025-04-09 10:34:38 -04:00
committed by GitHub
parent cb239b20ab
commit 9f4574f4ff
7 changed files with 52 additions and 29 deletions
+4 -1
View File
@@ -12,6 +12,8 @@ IGNORED_EXCEPTIONS = [
"UnauthorizedOperation",
"AuthFailure",
"InvalidClientTokenId",
"AWSInvalidProviderIdError",
"InternalServerErrorException",
"AccessDenied",
"No Shodan API Key", # Shodan Check
"RequestLimitExceeded", # For now we don't want to log the RequestLimitExceeded errors
@@ -36,7 +38,7 @@ IGNORED_EXCEPTIONS = [
"InvalidRequestException",
"RequestExpired",
"ConnectionClosedError",
"HTTPSConnectionPool",
"MaxRetryError",
"Pool is closed", # The following comes from urllib3: eu-west-1 -- HTTPClientError[126]: An HTTP Client raised an unhandled exception: AWSHTTPSConnectionPool(host='hostname.s3.eu-west-1.amazonaws.com', port=443): Pool is closed.
# Authentication Errors from GCP
"ClientAuthenticationError",
@@ -55,6 +57,7 @@ IGNORED_EXCEPTIONS = [
"AzureNotValidClientIdError",
"AzureNotValidClientSecretError",
"AzureNotValidTenantIdError",
"AzureInvalidProviderIdError",
"AzureTenantIdAndClientSecretNotBelongingToClientIdError",
"AzureTenantIdAndClientIdNotBelongingToClientSecretError",
"AzureClientIdAndClientSecretNotBelongingToTenantIdError",