During the source check triggered via UI I got the...
# ask-ai
m
During the source check triggered via UI I got the following error:
'Bad request. Please check your request parameters.'
I was not able to find the root cause for this error. Where can I find the logs that will help me debug the error?
k
To debug the error
'Bad request. Please check your request parameters.'
during a source check in Airbyte, you should review the sync job logs. Here’s how you can find and access these logs: 1. In the Airbyte UI: - Go to the connection where you encountered the error. - Navigate to the
Job History
tab to see the latest syncs. - Click the three grey dots next to the relevant sync and select
View logs
. This opens the full-screen in-app log viewer. - You can search for keywords like
Error
,
Exception
, or
Fail
to quickly locate relevant error messages. 2. Download Logs: - In the same menu (three grey dots), you can select
Download logs
to get a local copy of the logs. This is useful if you want to search across all attempts or share the logs for further troubleshooting. 3. Link to a Sync Job: - You can also copy a direct link to the job logs by selecting
Copy link to job
from the same menu, which is helpful for sharing with support or your team. 4. For Airbyte Open Source Users: - Additional logs are available outside the UI, especially if you need to browse Docker volumes where Airbyte server and worker output files are stored. These logs will provide detailed information about the error and help you identify the root cause of the bad request during the source check. For more details, see the official documentation on [browsing output logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs) and related platform versions, as the process is consistent across Airbyte versions 1.6, 1.7, and Next [Browsing logs](https://docs.airbyte.com/platform/1.6/operator-guides/browsing-output-logs) [Browsing logs](https://docs.airbyte.com/platform/1.7/operator-guides/browsing-output-logs) [Browsing logs](https://docs.airbyte.com/platform/next/operator-guides/browsing-output-logs).
m
@kapa.ai the error is happening when changing the source properties, during the check operation.
k
A message from kapa.ai
When you encounter the error
'Bad request. Please check your request parameters.'
during a source check operation after changing source properties, the most useful logs for debugging are the job logs generated by Airbyte during the check operation. Where to find the logs: - Airbyte UI: After triggering the check (for example, by editing source properties and clicking "Check connection"), go to the relevant source in the Airbyte UI. In the "Job History" or similar section, you can view the logs for the check operation. These logs will show detailed error messages and stack traces that can help you identify which parameter or request is causing the bad request error. - Log Details: The logs will typically include information about the HTTP request made to the source API, the response received (including status code 400), and any error messages returned by the source system. For example, in the case of the Facebook Pages connector, the logs show repeated attempts and backoff retries, followed by a final error message indicating a bad request and suggesting to check the request parameters. The stack trace in the logs can also point to which part of the connector or configuration is problematic [Bad Request error on Source setup](https://github.com/airbytehq/airbyte/issues/63718). - If using Airbyte OSS: You can also access the logs directly from your deployment environment (e.g., Docker or Kubernetes logs) if you need more detailed or raw output. What to look for: - Look for lines in the logs that mention "Bad request", "400", or "Check failed". - Review the stack trace and any request/response details to see if a specific parameter is missing or malformed. - If the error message is not clear, check the configuration you submitted for any typos, missing required fields, or invalid values. If you are unable to identify the root cause from the logs, you may want to share the relevant log excerpts when seeking further help, as they provide the most direct insight into what went wrong during the check operation. Summary: The job logs generated during the check operation (accessible via the Airbyte UI or your deployment environment) are the primary resource for debugging this type of error. They will help you pinpoint the problematic parameter or configuration issue that is causing the "Bad request" error during source property changes [Bad Request error on Source setup](https://github.com/airbytehq/airbyte/issues/63718).
m
I have the following log in the UI:
ERROR    i.a.w.i.VersionedAirbyteStreamFactory(internalLog):315 - Check failed
@kapa.ai I have the following error in the UI:
Copy code
ERROR    i.a.w.i.VersionedAirbyteStreamFactory(internalLog):315 - Check failed
This error only happen when I choose an older start date. This error does not happen when testing the connector locally on running via Postman.
k
A message from kapa.ai
Based on the information in the knowledge sources, encountering a check failure when selecting an older start date is a known issue with several Airbyte connectors. This often happens because: - The connector or the underlying API may not support querying data before a certain date, or - There is no data available for the selected start date, which can cause the check to fail. For example, in the context of other connectors, users have reported similar issues where setting a start date earlier than when data actually exists results in a check failure. One user noted that setting a start date before any data was available caused the connection to fail, and the issue was resolved by choosing a more recent start date where data was present [Connecting appstore and bigquery](https://discuss.airbyte.io/t/2332). Additionally, for some connectors, the error message may not be explicit about the root cause, but the logs will show a check failure when the start date is too early or not supported by the API [Forum: Source Google Search Console](https://discuss.airbyte.io/t/2482). Why does it work in Postman or locally? - When testing locally or via Postman, you might be bypassing some validation or error handling that Airbyte enforces during the check operation. - Airbyte’s check operation may have stricter validation or expect a certain response structure, and if the API returns an empty or unexpected result for an old start date, the check fails. What to do: - Try setting the start date to a time after you know data exists in the source system. - Review the connector and API documentation to confirm the earliest supported date for data extraction. - Check the Airbyte logs for more details on the failure, as they may indicate if the issue is due to no data or an unsupported date range. If you continue to experience issues, consider sharing the relevant log output for more targeted troubleshooting. Summary: The error is likely due to selecting a start date before data exists or before the API supports. Setting a more recent start date should resolve the issue, as confirmed by similar cases in the Airbyte community [Connecting appstore and bigquery](https://discuss.airbyte.io/t/2332) [Forum: Source Google Search Console](https://discuss.airbyte.io/t/2482).
m
@kapa.ai Where to find details about this error:
Copy code
ERROR    i.a.w.i.VersionedAirbyteStreamFactory(internalLog):315 - Check failed
k
A message from kapa.ai
To find details about the error
Copy code
ERROR    i.a.w.i.VersionedAirbyteStreamFactory(internalLog):315 - Check failed
you should review the job logs generated by Airbyte during the check operation. These logs provide detailed information about what caused the check to fail. How to access the logs: - In the Airbyte UI: 1. Go to the relevant connection. 2. Navigate to the
Job History
tab to see recent syncs and check operations. 3. Click the three grey dots next to the failed job and select
View logs
. This will open the in-app log viewer where you can search for error details, including the specific error line and any preceding context. - Download logs: You can also select
Download logs
from the same menu to get a local copy for deeper analysis or sharing. - If using Airbyte Open Source: Additional logs can be accessed directly from the Docker volumes or your deployment environment, which may provide even more context if needed. These logs will show not only the error line but also the stack trace and any related messages that can help you identify the root cause of the failure [Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs). If you need to share the error with others, you can use the
Copy link to job
option to provide a direct link to the job logs in the UI. > The in-app log viewer and downloadable logs are your primary resources for understanding and troubleshooting this error in Airbyte.
m
@kapa.ai The error is appearing on the test the source option: Which pod should I check to get more details
k
Sorry @Matheus Dantas, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
m
@kapa.ai The error is appearing on the
test the source
option. Which pod should I check to get more details.
k
A message from kapa.ai
When you encounter an error during the "Test the Source" operation in Airbyte, you should check the logs of the source check pod that is created for this operation. The pod is typically named following the pattern:
Copy code
source-<connector-name>-check-<job-id>-<attempt>-<random>
For example, in one of the knowledge sources, the pod name is
source-jira-check-8808e119-d606-4868-a0f4-0d7c534f7cff-0-onxwn
. This pod is responsible for running the check operation, and its logs will contain detailed information about why the check failed, including stack traces and error messages from the connector itself [Airbyte 1.2.0 on Kubernetes/EKS: Cannot create new sources as "Test the Source" fails with HTTP 500](https://github.com/airbytehq/airbyte/issues/48809). So, to get more details about the error, you should inspect the logs of the source check pod created during the "Test the Source" operation.