<@U04S8PLJWMT> I am getting this error with facebo...
# ask-ai
k
@kapa.ai I am getting this error with facebook connection , it took 2 hours to complete but loaded only 0 bytes but it works in retry - ERROR Failed to obtain or add access token
k
The error "Failed to obtain or add access token" typically indicates an issue with authentication when Airbyte tries to connect to Facebook's API. This can result in syncs taking a long time and loading no data, as the connector cannot authenticate and retrieve data from Facebook. From the knowledge sources, a similar error is seen in Airbyte logs as:
Copy code
ERROR   i.a.a.c.a.DataplaneAccessTokenInterceptor(intercept):151 - Failed to obtain or add dataplane access token java.lang.Exception: Token request failed with HTTP code 500
This suggests that the token request to Facebook failed, possibly due to a temporary issue with the Facebook API or a problem with the credentials or permissions used by Airbyte. In some cases, retrying the sync works, which may indicate intermittent issues with the Facebook API or network connectivity rather than a persistent configuration problem. This is consistent with user reports where retries sometimes succeed after initial failures, especially with Facebook connectors, which are known to be sensitive to rate limits, permissions, and API stability issues [Github Issue: Could not deploy latest (v1.6.0) airbyte community with abctl](https://github.com/airbytehq/airbyte/issues/58587). What you can do: - Double-check that your Facebook API credentials are valid and have not expired. - Ensure that the required permissions are granted to the access token. - If you are using a custom connector or your token expires quickly, consider implementing a retry or backoff strategy, as some users have found this helps with transient authentication errors [Github Issue: Failure in source: Unauthorized (stop working)](https://github.com/airbytehq/airbyte/issues/48740). - If the problem persists, check for any rate limiting or quota issues on the Facebook side, as these can also cause authentication failures or long sync times [Facebook Pages Source Performance Considerations](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations). If the error only happens occasionally and resolves on retry, it is likely due to temporary issues with the Facebook API or token refresh timing. If it happens consistently, review your token generation and permissions setup. If you need more specific troubleshooting steps, please provide the full error logs or additional context about your connector configuration.
k
@kapa.ai 2025-10-02 083816 replication-orchestrator ERROR Source process exited with non-zero exit code 1 2025-10-02 083816 replication-orchestrator ERROR SourceReader error: 2025-10-02 083853 destination ERROR main i.a.c.i.u.ConnectorExceptionHandler(handleException):68 caught exception! io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details. at io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer.close(AsyncStreamConsumer.kt:215) ~[airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.cdk.integrations.base.SerializedAirbyteMessageConsumer$Companion$appendOnClose$1.close(SerializedAirbyteMessageConsumer.kt:70) ~[airbyte-cdk-core-0.46.0.jar:?] at kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseableJVM.kt:48) ~[kotlin-stdlib-2.0.0.jar:2.0.0-release-341] at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:215) [airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119) [airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.run$default(IntegrationRunner.kt:113) [airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.integrations.destination.redshift.RedshiftDestination$Companion.main(RedshiftDestination.kt:519) [io.airbyte.airbyte-integrations.connectors-destination-redshift.jar:?] at io.airbyte.integrations.destination.redshift.RedshiftDestination.main(RedshiftDestination.kt) [io.airbyte.airbyte-integrations.connectors-destination-redshift.jar:?] Stack Trace: io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details. at io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer.close(AsyncStreamConsumer.kt:215) at io.airbyte.cdk.integrations.base.SerializedAirbyteMessageConsumer$Companion$appendOnClose$1.close(SerializedAirbyteMessageConsumer.kt:70) at kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseableJVM.kt:48) at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:215) at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119) at io.airbyte.cdk.integrations.base.IntegrationRunner.run$default(IntegrationRunner.kt:113) at io.airbyte.integrations.destination.redshift.RedshiftDestination$Companion.main(RedshiftDestination.kt:519) at io.airbyte.integrations.destination.redshift.RedshiftDestination.main(RedshiftDestination.kt) 2025-10-02 083853 replication-orchestrator ERROR DestinationReader error: 2025-10-02 083853 replication-orchestrator ERROR runJobs failed; recording failure but continuing to finish. 2025-10-02 083853 replication-orchestrator ERROR Error closing resource io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination@2cb21a44; recording failure but continuing. 2025-10-02 083853 replication-orchestrator ERROR Error closing resource io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteSource@25471835; recording failure but continuing. 2025-10-02 083856 platform ERROR Failing job: 128724, reason: 'GET' request to 'https://bingadsappsstorageprod.blob.core.windows.net/fuv-reportdataapi-25-10-02/1c49ab7d-3093-4175-b5b0-29b09938f5f6/KeywordPerformanceReport.zip?skoid=e697f752-fbaf-4c0b-999c-e188178a9ed3&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2025-10-01T14%3A35%3A08Z&ske=2025-10-08T14%3A35%3A08Z&sks=b&skv=2023-11-03&sv=2023-11-03&st=2025-10-02T12%3A26%3A15Z&se=2025-10-02T12%3A36%3A15Z&sr=b&sp=r&sig=sGHFDucj8DV%2BBrICstG%2F%2Fo0wShwT8EFbD%2Bhlxcap%2Fps%3D' failed with status code '403' and error message: '<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:39f119b2-001e-005a-3899-33c262000000 Time2025 10 02T1237:01.9970511Z</Message><AuthenticationErrorDetail>Signature not valid in the specified time frame: Start [Thu, 02 Oct 2025 122615 GMT] - Expiry [Thu, 02 Oct 2025 123615 GMT] - Current [Thu, 02 Oct 2025 123701 GMT]</AuthenticationErrorDetail></Error>'. Request (body): 'None'. Response (body): '<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:39f119b2-001e-005a-3899-33c262000000
k
A message from kapa.ai
Your error log shows two main issues: 1. Source process exited with non-zero exit code 1 This is a generic error indicating that the source connector failed. The root cause is not always clear from this message alone, but it often means the connector encountered an unrecoverable error during sync. This is commonly seen in Airbyte when the source cannot read data, possibly due to authentication, permissions, or API issues. The log also shows a downstream effect:
Copy code
io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details.
This means the destination (Redshift in your case) could not complete the sync because the source failed to provide data. This pattern is consistent with other Airbyte issues where the source fails and the destination reports a transient error as a result [Github Issue: Postgres -> Redshift connector fails after migration](https://github.com/airbytehq/airbyte/issues/45381). 2. AuthenticationFailed with Azure Blob Storage (HTTP 403) The error:
Copy code
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.    ...    Signature not valid in the specified time frame: Start [Thu, 02 Oct 2025 12:26:15 GMT] - Expiry [Thu, 02 Oct 2025 12:36:15 GMT] - Current [Thu, 02 Oct 2025 12:37:01 GMT]
This means the SAS token (or other authentication method) used to access Azure Blob Storage was expired or not valid for the time of the request. The "Current" time is after the "Expiry" time, so the request is being rejected by Azure. This is a common cause of 403 errors with Azure Blob Storage in Airbyte [Forum: Azure Storage Account inaccessible - Failed to resolve URL after 2 queries](https://discuss.airbyte.io/t/487). What you should do: - For the Azure Blob Storage error: Ensure that your SAS token or credentials are valid and that the time window for the token covers the entire expected sync duration. If your syncs can take a long time, generate a SAS token with a longer expiry window to avoid this issue. - For the source connector error: Review the connector-specific logs for more details on why the source failed. Common causes include expired credentials, API rate limits, or misconfiguration. If the error is intermittent and resolves on retry, it may be due to temporary API or network issues. If you need more targeted help, please provide the connector type and any additional error messages from the source logs. The knowledge sources do not provide a more specific root cause for your exact scenario, but the above steps are consistent with the documented issues and error patterns.