DAP client not connecting, but PG connection works from same host

Jump to solution
reynlds
Community Coach
Community Coach

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

0 Likes
1 Solution
ColinMurtaugh
Community Champion

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

View solution in original post