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) when using NetSuite as a source connector in Airbyte—where the source test passes but schema discovery fails—is a known issue. This typically happens because schema discovery for NetSuite can take a long time, especially if you do not specify object types, causing the operation to exceed default timeout limits. The NetSuite metadata-catalog API can take over 90 seconds to respond, which is often longer than Airbyte's default timeout settings, resulting in a 504 Gateway Timeout error during schema discovery, even though the connection test itself is much faster and succeeds. Workarounds and Solutions: 1. Specify Object Types: One effective workaround is to explicitly specify the objects you want to pull in the NetSuite source configuration. This reduces the scope of the schema discovery and can help avoid timeouts. This approach has been confirmed to resolve the issue for some users, as noted in the official support response: > "RESOLVED: we fixed this by specifying the objects we want to pull in the source configs." [Forum: Netsuite Source: Error fetching schema non json response](https://discuss.airbyte.io/t/4417) 2. Increase Timeout Settings: If you are running Airbyte on your own infrastructure (e.g., Docker, Kubernetes, or via Helm), you can increase the timeout limits for schema discovery. For example, you can add the following to your configuration: yaml server: extraEnvs: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m This change allows Airbyte to wait longer for the schema discovery process to complete, which is often necessary for large or complex NetSuite accounts. This solution has been reported to help in both OSS and cloud deployments, though in Airbyte Cloud you may have limited ability to change these settings yourself. [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts) 3. Timeouts Are a Known Limitation: Even with increased timeouts, some users have reported that schema discovery can still fail if the NetSuite API is particularly slow or if the schema is very large. This is a known limitation, and Airbyte maintainers have acknowledged the need for better handling of long-running schema discovery operations for connectors like NetSuite. [GitHub Issue: Fetch schema timeout issue with NetSuite connector](https://github.com/airbytehq/airbyte/issues/25223) Summary: - The 504 error is due to schema discovery taking longer than the allowed timeout. - Specify object types in your NetSuite source configuration to reduce discovery time. - Increase timeout settings if possible. - This is a known issue with large or complex NetSuite schemas. If you are on Airbyte Cloud and cannot change timeout settings, specifying object types is your best option. If you are self-hosting, adjust the timeout settings as shown above. If the problem persists, it may be a limitation of the current NetSuite connector implementation.Rocky Appiah
07/31/2025, 8:39 PM