DAP client not connecting, but PG connection works from same host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can successfully connect to my DB instance with DBeaver and Telnet (to port 5432), but the DAP client, from the same host/IP, does NOT connect with the following errors (IP has been obfuscated):
raise DatabaseConnectionError(f"database connection error: {e}") from e
dap.database.database_errors.DatabaseConnectionError: database connection error: [Errno 111] Connect call failed ('X.X.X.X', 5434)
(__main__.py:140)
2023-05-09 10:42:01,188 - ERROR - database connection error: [Errno 111] Connect call failed ('X.X.X.X', 5434) (__main__.py:141)
This makes me wonder if there are requirements for the instructure-dap-client that may not be published (such as additional packages/libraries). I'm using the latest available client version: 0.3.7
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like the port number in your DAP env variable may be wrong? The error message mentions 5434 vs. 5432 (which is the default pgsql port).
--Colin