Skip to content

Commit abce445

Browse files
devin-ai-integration[bot]bot_apksuisuixia42
authored
fix(source-google-analytics-data-api): improve error messages and 403 handling (#76185)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: bot_apk <apk@cognition.ai> Co-authored-by: suisui.xia <suisui.xia@airbyte.io>
1 parent d9c9e7d commit abce445

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

airbyte-integrations/connectors/source-google-analytics-data-api/manifest.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,20 @@ definitions:
183183
- type: ConstantBackoffStrategy
184184
backoff_time_in_seconds: 30
185185
response_filters:
186-
- predicate: ""
186+
- type: HttpResponseFilter
187+
http_codes: [400]
187188
action: FAIL
188189
failure_type: config_error
189-
error_message: "Incorrect Property ID. Access was denied to the property ID entered. Check your access to the Property ID or use Google Analytics https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id to find your Property ID."
190+
error_message: "{{ response.error.message }}"
191+
- type: HttpResponseFilter
192+
predicate: "{{ response.error.status == 'PERMISSION_DENIED' }}"
193+
action: FAIL
194+
failure_type: config_error
195+
error_message: "{{ response.error.message }}"
196+
- type: HttpResponseFilter
197+
http_codes: [403]
198+
action: RETRY
199+
error_message: "{{ response.error.message }}"
190200

191201
dynamic_streams:
192202
- type: DynamicDeclarativeStream

airbyte-integrations/connectors/source-google-analytics-data-api/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ data:
1212
connectorSubtype: api
1313
connectorType: source
1414
definitionId: 3cc2eafd-84aa-4dca-93af-322d9dfeec1a
15-
dockerImageTag: 2.9.30
15+
dockerImageTag: 2.9.31
1616
dockerRepository: airbyte/source-google-analytics-data-api
1717
documentationUrl: https://docs.airbyte.com/integrations/sources/google-analytics-data-api
1818
externalDocumentationUrls:

docs/integrations/sources/google-analytics-data-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ The Google Analytics connector is subject to Google Analytics Data API quotas. P
280280

281281
| Version | Date | Pull Request | Subject |
282282
|:---------------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
283+
| 2.9.31 | 2026-04-09 | [76185](https://github.com/airbytehq/airbyte/pull/76185) | Improve error messages for HTTP 400/403 responses; use predicate-based 403 handling to distinguish permission errors (config_error) from other 403s (retry) |
283284
| 2.9.30 | 2026-04-09 | [76190](https://github.com/airbytehq/airbyte/pull/76190) | Add access_token to extract_output and complete_oauth_output_specification to fix OAuth secretId 422 regression |
284285
| 2.9.29 | 2026-04-01 | [75580](https://github.com/airbytehq/airbyte/pull/75580) | Add `oauth_connector_input_specification` with granular scopes |
285286
| 2.9.28 | 2026-03-31 | [75678](https://github.com/airbytehq/airbyte/pull/75678) | Update dependencies |

0 commit comments

Comments
 (0)