I am getting an error: "An unknown error occurred....
# ask-ai
b
I am getting an error: "An unknown error occurred. (HTTP 504)" when connecting to a large MongoDB database, it seems to only happen on this database, it could be because there are 110 collections. It also times out at exactly 60 seconds, can this be updated to be larger than 60 seconds?
k
Yes, it's possible that the timeout error you're experiencing is due to the large number of collections in your MongoDB database. The connector might be taking a long time to read all the collections, causing the request to time out. One solution could be to increase the timeout configured for your server. This would give the connector more time to read all the collections before the request times out. Another recommendation is to limit the user access to only the necessary collections. If you have large connections, you might want to divide them into multiple users. This could help to reduce the time it takes for the connector to read all the collections. If you're using a Load Balancer (LB) to access Airbyte, this could also be contributing to the issue. One user reported a similar problem and found that the issue was with the Kubernetes Nginx ingress. They switched to HAProxy ingress and the problem was resolved. Please refer to the following sources for more information: - [Forum Post: Failed to load schema in discovery_schema timeout in LoadBalancer](https://discuss.airbyte.io/t/2665) - [Github Issue: Error 504 when the configure connection takes more then 1min to get database schemas](https://github.com/airbytehq/airbyte/issues/29712) If you continue to experience issues, you might find it helpful to refer to the [MongoDB troubleshooting guide](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting) in the Airbyte documentation.