microsoft / microsoft/vscode-pgsql

Can't connect to server at local network MacOS Sequoia

Open
#78 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
No language data
Stars
395
Forks
33
Avg merge
1h 46m
Merged PRs (30d)
3

Description

Describe the bug

Can't connect to resources in the local network.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Add new connection'
  2. Click on 'Parameters'
  3. Fill the whole parameters of the server, which is located in local network
    [09:15:43] Error connecting to server "192.168.0.195". Details: couldn't get a connection after 15.00 sec [09:20:05] [PgToolsService Initialization] [Verbose]: readAllConnections: 1 connections; excluded recent) [09:20:20] Error connecting to server "192.168.0.195". Details: Connection error: connection timeout expired
    Expected behavior
    Expect working connection to the database.

Looks like the new MacOS Sequoia security restrictions didn't work as expected.
Despite "Local network" is allowed in Security & Privacy, extension can't work with local network at all.

VS Code version
Version: 1.100.3
Commit: 258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3
Date: 2025-06-02T13:30:54.273Z (1 wk ago)
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failed connection through the extension's Add new connection and Parameters flow on macOS Sequoia, using the supplied 192.168.0.195 details and PgToolsService logs. Check the interaction between the extension and macOS Local Network permission. Done means a local PostgreSQL server can be reached successfully with that permission enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, postgresql, vscode
Domain
databases, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.