What does the error ```airbyte_cdk.utils.traced_ex...
# ask-ai
l
What does the error
Copy code
airbyte_cdk.utils.traced_exception.AirbyteTracedException: Concurrent read failure
tell about the type of issue? Is it on the connector implementation or something out of our control, e.g. in the source database/api?
k
The error
Copy code
airbyte_cdk.utils.traced_exception.AirbyteTracedException: Concurrent read failure
is a generic error raised by Airbyte's concurrent read processing logic. Based on the knowledge sources, this error can be triggered by a variety of underlying issues, both within the connector implementation and due to external factors such as problems with the source database or API. From the examples: - In some cases, the root cause is an external issue, such as rate limits being hit on the source API ([source-gorgias](https://github.com/airbytehq/airbyte/issues/52151)), expired OAuth tokens ([source-hubspot](https://github.com/airbytehq/airbyte/issues/62467)), or gateway timeouts ([source-zendesk-support](https://github.com/airbytehq/airbyte/issues/52133)). - In other cases, the error can be due to connector implementation issues, such as unhandled exceptions or bugs in pagination or data parsing logic ([source-monday](https://github.com/airbytehq/airbyte/issues/61635)), or missing error handling for specific HTTP status codes ([source-amazon-ads](https://github.com/airbytehq/airbyte/issues/54650)). Summary: The error itself does not specify whether the problem is with the connector implementation or the external source. It is a catch-all for failures that occur during concurrent reading. To determine the root cause, you need to inspect the logs for the specific error or exception that triggered the concurrent read failure. The underlying issue could be: - A bug or missing error handling in the connector code. - An external problem such as API rate limits, authentication failures, or network errors. Action: Always check the detailed logs and error messages preceding the
Concurrent read failure
to identify whether the issue is internal (connector bug) or external (source system/API problem) in nature. References: - [source-gorgias: Rate limit causing sync to fail](https://github.com/airbytehq/airbyte/issues/52151) - [source-hubspot: Mid-sync Auth Failures](https://github.com/airbytehq/airbyte/issues/62467) - [source-zendesk-support: Gateway timeout](https://github.com/airbytehq/airbyte/issues/52133) - [source-monday: KeyError in pagination](https://github.com/airbytehq/airbyte/issues/61635) - [source-amazon-ads: 401 error handling](https://github.com/airbytehq/airbyte/issues/54650)
l
@kapa.ai I found out several entries like
Copy code
Forbidden. You don't have permission to access this resource.
this is a google ads connector, version 4.0.2 what can be the issue?
k
A message from kapa.ai
The error message
Copy code
Forbidden. You don't have permission to access this resource.
when using the Google Ads connector (version 4.0.2) typically indicates a permissions issue with the credentials or account being used. Based on the knowledge sources, common causes for this error include: - Insufficient Permissions: The user or service account does not have the required access to the Google Ads account or specific resources. For example, if the account is not linked to the correct Google Ads Manager account, or if the necessary permissions are not granted, you may encounter this error. It's important to ensure that the account used has the appropriate access level and is linked correctly as described in the [Google Ads connector documentation](https://docs.airbyte.com/integrations/sources/google-ads). - Incorrect Customer ID or Developer Token: If the customer ID or developer token used does not have access to the requested resources, some streams or data may be unavailable, resulting in permission errors. This was observed in a case where only some default streams were retrieved due to a CUSTOMER_ID lacking permissions for certain accounts, and resolving the configuration fixed the issue ([Github Issue #52680](https://github.com/airbytehq/airbyte/issues/52680)). - OAuth Scopes or Token Issues: If the OAuth credentials (client ID, client secret, refresh token) do not have the correct scopes or are not properly set up, access may be denied. The required scope for Google Ads API is
https://www.googleapis.com/auth/adwords
 ([Google Ads connector documentation](https://docs.airbyte.com/integrations/sources/google-ads)). What you should check: 1. Ensure the account or service account used has the necessary permissions for the Google Ads resources you are trying to access. 2. Verify that the customer ID and developer token are correct and have access to the relevant accounts. 3. Confirm that the OAuth credentials are valid and have the correct scopes. If you recently changed permissions or account settings, you may need to re-authenticate or refresh your credentials in Airbyte. If after checking these points the issue persists, review the detailed logs for more specific information about which resource is being denied, as this can help pinpoint the exact permission that is missing. If you need more detailed troubleshooting, please provide the full error message and context from the logs. References: - [Google Ads connector documentation](https://docs.airbyte.com/integrations/sources/google-ads) - [Github Issue #52680: Permissions issue with CUSTOMER_ID](https://github.com/airbytehq/airbyte/issues/52680)
l
@kapa.ai bare in mind that the connector finishes successfully most of the times. The behavior is inconsistent. What does it tell us about the source of the issue?
k
A message from kapa.ai
Given that the Google Ads connector (version 4.0.2) finishes successfully most of the time and only intermittently returns
Copy code
Forbidden. You don't have permission to access this resource.
this suggests that the issue is likely not with your connector configuration or credentials themselves, but rather with external factors related to the Google Ads API or account permissions. What this inconsistency suggests: - Intermittent API or Account Restrictions: The permissions or access to certain resources may be changing dynamically on the Google Ads side. For example, if your account has access to multiple sub-accounts or resources, some of them might have different permission levels or temporary restrictions, leading to occasional "Forbidden" errors for specific requests. - API Quotas or Rate Limits: Google Ads API may enforce quotas or rate limits that, when exceeded, could result in temporary permission errors. However, these usually return specific quota-related messages, but in some cases, a generic "Forbidden" may be shown. - Resource-Specific Permissions: If your syncs are accessing different resources or customer IDs in each run, and some of those have restricted access, you may see inconsistent results depending on which resources are being queried in a particular sync. This was observed in other connectors where only some streams failed due to specific resource permissions, while others succeeded ([see similar issue](https://github.com/airbytehq/airbyte/issues/52680)). - External System Fluctuations: Sometimes, external systems (like Google Ads) may have transient issues or delays in permission propagation, causing intermittent failures. What it likely does NOT indicate: - A fundamental misconfiguration of the connector or credentials (since most runs succeed). - A bug in the connector itself, unless it is related to error handling for partial failures. Next steps: - Review which specific resources or streams fail when the error occurs. - Check if there are any patterns (e.g., certain customer IDs, times of day, or API endpoints). - Ensure all sub-accounts and resources you are syncing have consistent permissions. If the problem persists and you need to debug further, enabling more detailed logging in Airbyte and cross-referencing with Google Ads API logs may help pinpoint the exact resource or condition causing the intermittent "Forbidden" errors. The knowledge sources do not provide a definitive root cause for this exact intermittent behavior, but similar patterns have been observed with permission inconsistencies at the resource level in Google Ads ([see related discussion](https://github.com/airbytehq/airbyte/issues/52680)).