:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(aws_cost_explorer): handle IncompleteSignatureException (#130009)
Tom Owers225804b5f4cd
diff --git a/products/warehouse_sources/sources/aws_cost_explorer/aws_cost_explorer.py b/products/warehouse_sources/sources/aws_cost_explorer/aws_cost_explorer.pyindex 073548b2e132..ebba4ac0ee3c 100644--- a/products/warehouse_sources/sources/aws_cost_explorer/aws_cost_explorer.py+++ b/products/warehouse_sources/sources/aws_cost_explorer/aws_cost_explorer.py@@ -360,6 +360,7 @@ VALIDATION_ERROR_MESSAGES: dict[str, str] = {"InvalidClientTokenId": "AWS rejected the access key. Please check the access key ID and secret access key, and that the key is still active.","SignatureDoesNotMatch": "AWS rejected the request signature. Please re-enter the secret access key.","InvalidSignatureException": "AWS rejected the request signature. If you are using temporary credentials, the session token has expired.",+ "IncompleteSignatureException": "AWS rejected the request signature. The access key ID or secret access key may have extra whitespace, such as a copied trailing space or newline. Please re-enter the credentials.","ExpiredTokenException": "The AWS session token has expired. Please reconnect with fresh credentials.","AccessDeniedException": "These AWS credentials are missing Cost Explorer permissions. Grant ce:GetCostAndUsage, ce:GetCostAndUsageWithResources, ce:GetDimensionValues, ce:GetReservationUtilization, ce:GetReservationCoverage, ce:GetSavingsPlansUtilization and ce:GetSavingsPlansCoverage to the IAM user or role.","DataUnavailableException": "AWS has no Cost Explorer data for the requested dates. Cost Explorer has to be enabled on the account, and it can take up to 24 hours to prepare data.",diff --git a/products/warehouse_sources/sources/aws_cost_explorer/tests/test_aws_cost_explorer.py b/products/warehouse_sources/sources/aws_cost_explorer/tests/test_aws_cost_explorer.pyindex a334c8a4ef1a..b260797e5ba1 100644--- a/products/warehouse_sources/sources/aws_cost_explorer/tests/test_aws_cost_explorer.py+++ b/products/warehouse_sources/sources/aws_cost_explorer/tests/test_aws_cost_explorer.py@@ -195,6 +195,7 @@ class TestValidateCredentials:[("AccessDeniedException", VALIDATION_ERROR_MESSAGES["AccessDeniedException"]),("ExpiredTokenException", VALIDATION_ERROR_MESSAGES["ExpiredTokenException"]),+ ("IncompleteSignatureException", VALIDATION_ERROR_MESSAGES["IncompleteSignatureException"]),("ThrottlingException", TRANSIENT_VALIDATION_ERROR),("HTTP 503", TRANSIENT_VALIDATION_ERROR),("SomeUnmappedException", GENERIC_VALIDATION_ERROR),