<@U04S8PLJWMT> is there a way to see/log the api r...
# ask-ai
i
@kapa.ai is there a way to see/log the api requests happening in a connector ?
k
Yes, Airbyte provides some ways to view and log API requests made by connectors, but the level of detail and ease of access depends on the context: 1. Connector Builder UI (for development and testing): When developing connectors using the Connector Builder UI, you can test your connector and inspect the HTTP requests and responses. After running a test, the UI displays panels showing the final download request (including URL, headers, and parameters) and response, as well as an "Other Requests" panel for intermediate API calls (creation and polling requests). This is very helpful for debugging and understanding the API interactions during connector development. You can view request URLs, methods, headers, bodies, and responses directly in the UI panels [Testing Asynchronous Streams in the UI](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/async-streams#testing-asynchronous-streams-in-the-ui). 2. Sync Logs (for running connectors): Airbyte records detailed logs for each sync, which can be accessed via the UI (Job History > View logs) or downloaded for further inspection. These logs often include information about the sync process and errors, but may not always include full API request/response details by default [Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs). 3. Debug-level Logging (for custom connectors): There is ongoing discussion and partial support for more detailed logging of API calls (including headers, URLs, etc.) in the Python CDK. Setting the environment variable
DEBUG=true
can enable more verbose logging for connectors built with the Python CDK. However, this may not log every detail of every API call unless the connector or CDK is specifically instrumented to do so. There are also discussions about adding a
log-level
option to connector CLIs for more granular control [log http calls to api](https://github.com/airbytehq/airbyte/issues/52077). Note: - By default, Airbyte does not log all API request details (such as headers or full payloads) for every connector due to potential sensitivity of the data. - For advanced debugging, some users have set up a proxy (like nginx) to capture API traffic as a workaround. If you need more detailed API request logging than what is currently available, you may need to modify the connector code or use external tools as a temporary solution. Pull requests to improve logging in the Airbyte CDK are welcome by the community [log http calls to api](https://github.com/airbytehq/airbyte/issues/52077).