Skip to content

SSL Tunnel is not working with MongoDB #1621

Closed

Description

@tosbaha

What happened?

  • I enabled my SSL Tunnel, added my key, and the Test connection button works.
  • Test connection inside the General section doesn't work.
  • It says
[13053] No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling hello on 'localhost:27017']. Topology type: Single

Steps to reproduce

No response

Expected behavior

No response

Database type

MongoDB

TablePro version

0.49.1

macOS version & chip

macOS 26.5.1 (25F80)

Screenshots / Logs

No response

Activity

  1. added
    bug
    on Jun 8, 2026
  2. tosbaha commented on Jun 8, 2026

    @tosbaha
    Author

    This one fixed the issue for me

    diff --git a/TablePro/Core/Database/DatabaseManager+Tunnel.swift b/TablePro/Core/Database/DatabaseManager+Tunnel.swift
    index 95147a9c..991ad792 100644
    --- a/TablePro/Core/Database/DatabaseManager+Tunnel.swift
    +++ b/TablePro/Core/Database/DatabaseManager+Tunnel.swift
    @@ -30,6 +30,7 @@ extension DatabaseManager {
                 effectiveFields["pgpassOriginalHost"] = connection.host
                 effectiveFields["pgpassOriginalPort"] = String(connection.port)
             }
    +        effectiveFields["mongoHosts"] = nil
    
             return DatabaseConnection(
                 id: connection.id,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions