Rocky Appiah
07/31/2025, 8:38 PMUnknown error (http.504 when using netsuite as a source connector. Testing source connector works without error, but getting an error when doing schema discoverykapa.ai
07/31/2025, 8:38 PMUnknown error (http.504) during schema discovery with the NetSuite source connector is a known issue in Airbyte, especially when the schema discovery process takes longer than the default timeout. This often happens if your NetSuite account has a large or complex schema, or if you do not specify object types in the connector configuration. The initial source connection test may succeed because it is a much lighter operation than full schema discovery. Key points and solutions: - Timeout Cause: The NetSuite metadata-catalog API can take a long time to respond (sometimes over 90 seconds), and Airbyte's default timeout may not be sufficient, causing the 504 Gateway Timeout error during schema discovery. This is confirmed in both GitHub issues and forum discussions, where users report the fetch schema operation timing out before the NetSuite API responds fully [Fetch schema timeout issue with NetSuite connector](https://github.com/airbytehq/airbyte/issues/25223) [Netsuite Source: Error fetching schema non json response](https://discuss.airbyte.io/t/4417). - Workarounds: 1. Specify Object Types: If possible, specify only the required object types in your NetSuite source configuration. This reduces the amount of metadata Airbyte needs to fetch and can help avoid timeouts. This approach resolved the issue for some users [Netsuite Source: Error fetching schema non json response](https://discuss.airbyte.io/t/4417). 2. Increase Timeout Settings: If you are running Airbyte OSS (self-hosted), you can increase the timeout for schema discovery by adding the following to your configuration (e.g., in your abctl.kubeconfig or Helm values): yaml server: extraEnvs: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m This allows Airbyte to wait longer for the NetSuite API to respond [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). - Airbyte Cloud Limitation: If you are using Airbyte Cloud, you may not have access to these timeout settings. In this case, specifying object types is the recommended workaround. - Connector Limitations: Some users have reported that even with increased timeouts, the Marketplace NetSuite connector may not work for all use cases, especially with very large schemas. There is also an enterprise NetSuite connector available for customers with the SuiteAnalytics Connect package, which may be more robust for large or complex NetSuite environments [Timeout Error Fetching the Schema using AirByte Cloud and AirByte OSS](https://github.com/airbytehq/airbyte/issues/55191). Summary: The 504 error during schema discovery is due to the NetSuite API's slow response and Airbyte's default timeout. Specify object types in your configuration and/or increase the timeout settings if possible. If you are on Airbyte Cloud and cannot change timeouts, specifying object types is your best option. If you need further help, please provide details about your deployment (Cloud or OSS) and your current connector configuration.