Stitch periodically performs checks on the connection to your database to ensure the connection remains active and healthy. Below are some of the most common errors you might see if Stitch has trouble performing the connection check to your database and how to resolve them.
In this reference:
Common connection errors
The following errors are applicable to all database integrations:
- An I/O error occurred while sending to the backend.
- Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
- Connection timed out.
- Could not list databases/tables for connection.
- FATAL: Password authentication failed for user [user_name]
- We encountered an error while attempting to check the type or version for this database. Please select the correct database...
- We encountered an internal error while checking the connection.
- [table_name] unsupported
I/O error
Applicable to |
PostgreSQL-backed database integrations |
Level | Critical |
Category |
Communication |
Potential cause(s) |
A transient communication error with the database occurred. |
Suggested action(s) |
If this error persists, refer to these troubleshooting tips to diagnose and treat the issue. |
Back to Common error list
Back to top
Connection refused
Applicable to |
All database integrations |
Level | Critical |
Category |
Communication |
Potential cause(s) |
Stitch is unable to connect to the database. This is typically a result of incorrectly entering connection details into Stitch, or a failure to whitelist Stitch’s IP addresses. |
Suggested action(s) |
|
Back to Common error list
Back to top
Connection timeout
Applicable to |
All database integrations |
Level | Critical |
Category |
Communication |
Potential cause(s) |
The connection to the database timed out before Stitch could successfully establish a connection. |
Suggested action(s) |
This error may be transient and resolve on its own, but if it persists, try the following before contacting support:
|
Back to Common error list
Back to top
Unable to list databases and tables
Applicable to |
All database integrations |
Level | Critical |
Category |
Database user privileges |
Potential cause(s) |
Stitch is unable to access the databases or tables in your database, likely due to insufficient database user privileges. |
Suggested action(s) |
Verify that the database user authorizing the integration has the necessary privileges for the type of database you’re connecting. |
Back to Common error list
Back to top
Incorrect password for database user
Applicable to |
All database integrations |
Level | Critical |
Category |
User credentials |
Potential cause(s) |
The credentials for the database user authorizing the connection are incorrect. |
Suggested action(s) |
Verify that the password entered into the Integration Settings page for the authorizing user is correct. |
Back to Common error list
Back to top
Database type mismatch
Applicable to |
All database integrations |
Level | Critical |
Category |
Incorrect Stitch setup |
Potential cause(s) |
The database type doesn’t match the database integration you selected in Stitch. For example: You select Microsoft SQL Server in Stitch, but we detect that it’s actually a Microsoft Azure SQL database. |
Suggested action(s) |
Verify that you’ve selected the correct database type. If the incorrect database type was chosen, select the correct database type and try completing the setup again. |
Back to Common error list
Back to top
Internal error
Applicable to |
All database integrations |
Level | Critical |
Category |
Internal |
Potential cause(s) |
Stitch encountered an internal issue. |
Suggested action(s) |
This error is usually transient and will resolve on its own, but if it persists, check our Status Page for reported service outages. |
Back to Common error list
Back to top
Unsupported table
Applicable to |
All database integrations |
Level | Critical |
Category |
Database user privileges or unsupported table format |
Potential cause(s) |
|
Suggested action(s) |
|
Back to Common error list
Back to top
MongoDB connection errors
- Prematurely reached end of file/stream
- Timed out after XXXX ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN,...
Incorrect SSL configuration
Applicable to |
MongoDB database integrations |
Level | Critical |
Category |
SSL configuration |
Potential cause(s) |
This error usually means that SSL has been incorrectly configured. Connecting a database integration to Stitch via SSL has two parts: Configuration on the database’s server and in the Stitch app. For the connection to be successful, the settings in both Stitch and on the database server must align. For example: A MongoDB server doesn’t support SSL connections but the SSL option is checked in Stitch. This will result in a connection error. |
Suggested action(s) |
First, verify if the MongoDB server is configured to support SSL connections. Then:
|
Back to MongoDB error list
Back to top
User database authentication mismatch
Applicable to |
MongoDB database integrations |
Level | Critical |
Category |
Database setup |
Potential cause(s) |
This error usually means that the database entered into the Authentication Database field of the Integration Settings page is not the same database that’s used for user authentication. Note: If this is an Atlas-based MongoDB instance, the authentication database will be the Stitch requires a database user and a MongoDB server with |
Suggested action(s) |
|
Back to MongoDB error list
Back to top
Questions? Feedback?
Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.