Skip to content

[Bug]: Tabularis cannot connect to PostgreSQL via kubectl port-forward while pgAdmin works #75

@getsueineko

Description

@getsueineko

Describe the bug

Description

Tabularis fails to connect to a PostgreSQL instance exposed locally via kubectl port-forward.
The client returns the following error:

Error: error communicating with database: failed to lookup address information: nodename nor servname provided, or not known

However, the same database connection works correctly when using pgAdmin and psql, which suggests the database itself and the port-forward are functioning correctly.

This indicates a potential issue in how Tabularis resolves or parses the connection parameters.

To Reproduce

Steps to reproduce
1. Expose PostgreSQL service locally using port-forward:
kubectl port-forward svc/postgres 5432:5432
2. Connect using pgAdmin:
Host: localhost Port: 5432 Database: postgres User: postgres
Connection succeeds.
3. Attempt the same connection in Tabularis using identical parameters.
4. Tabularis returns:
Error: error communicating with database: failed to lookup address information: nodename nor servname provided, or not known

OS Version

macOS 26.3.1

Tabularis Version

v0.9.6

Relevant Log Output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions