Kothapalli Venkata Avinash
10/13/2025, 1:26 PMkapa.ai
10/13/2025, 1:26 PMCaused by: org.openapitools.client.infrastructure.ClientException: Client error : 413 Request Entity Too Large during the schema discovery step in Airbyte typically occurs when the request payload sent to the Airbyte server (often via a reverse proxy like nginx) exceeds the allowed size limit. This is common when dealing with sources that have a very large number of tables or columns, such as large Microsoft SQL Server or Oracle databases. From the knowledge sources, here are the key points and possible solutions: 1. Root Cause: The error is triggered because the schema discovery process generates a very large payload (catalog), which exceeds the maximum allowed request size configured in your proxy or server. This is especially likely if your source database has thousands of tables or columns, as seen in the provided logs and user reports [source-mssql 413 error](https://github.com/airbytehq/airbyte/issues/56914), [source-oracle 413 error](https://github.com/airbytehq/airbyte/issues/22631). 2. Configuration Adjustments: - If you are using nginx as a reverse proxy (common in Docker or Kubernetes deployments), you need to increase the client_max_body_size parameter in your nginx configuration. - For Kubernetes deployments, you may also need to adjust the nginx.ingress.kubernetes.io/proxy-body-size annotation in your ingress configuration. - In Airbyte's values.yaml or environment variables, you can set parameters like MICRONAUT_SERVER_MAX_REQUEST_SIZE and increase timeouts (HTTP_IDLE_TIMEOUT, READ_TIMEOUT) to accommodate large payloads. Example configuration from a user who attempted to resolve this: yaml webapp: ingress: annotations: nginx.ingress.kubernetes.io/proxy-body-size: "50m" server: extraEnvs: - name: HTTP_IDLE_TIMEOUT value: 60m - name: READ_TIMEOUT value: 60m However, even after increasing these limits, some users still encountered the error, especially with extremely large schemas [source-mssql 413 error](https://github.com/airbytehq/airbyte/issues/56914). 3. Limitations: - If your database has more than 10,000 tables or a very large schema, you may still hit this error even after increasing the limits, as the underlying architecture may not be able to handle such large payloads efficiently. - There is no official workaround documented for splitting the schema discovery into smaller chunks in the current Airbyte version. 4. Next Steps: - Double-check and increase all relevant proxy and server request size limits. - If possible, reduce the number of tables or columns being discovered by limiting the scope of the sync (if the connector supports it). - If the problem persists, consider opening an issue with detailed logs or following up on existing issues for further support. Summary: The 413 error during schema discovery is due to the request size exceeding server or proxy limits, especially with very large source schemas. Increase the relevant size limits in your nginx and Airbyte configurations. If the issue persists with extremely large databases, there may be architectural limitations, and you may need to reduce the schema size or seek further support from the Airbyte community or GitHub issues [source-mssql 413 error](https://github.com/airbytehq/airbyte/issues/56914), [source-oracle 413 error](https://github.com/airbytehq/airbyte/issues/22631), [413 nginx forum post](https://discuss.airbyte.io/t/3333).