Skip to content

Unable to connect server: Cannot read properties of undefined (reading 'port') #1489

@isc-csuo

Description

@isc-csuo

Type: Bug

I get multiple errors while trying to connect to my server but I don't which one is the root cause.
When I refresh server connection, I get Error: unable to verify the first certificate. I was using *.iscinternal.com certs so I followed the instruction in documentation: https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_serverprofile#GVSCO_serverprofile_edit_selfsignedhttps, but I wasn't able to get that error resolved.
Then if I open the developer console, I see these errors:

[intersystems-community.vscode-objectscript]Cannot read properties of undefined (reading 'port')

and

TypeError: Cannot read properties of undefined (reading 'port')
	at t.AtelierAPI.setConnection (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-beta.15/dist/extension.js:2:398090)
	at new t.AtelierAPI (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-beta.15/dist/extension.js:2:396443)
	at ge (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-beta.15/dist/extension.js:2:634802)
	at /Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-beta.15/dist/extension.js:2:625063
	at Ah.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:172:35474)
	at D.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
	at D.C (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2443)
	at D.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2660)
	at Ah.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:171:62349)
	at D.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
	at D.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
	at Ww.acceptDocumentsAndEditorsDelta (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:11651)
	at Ww.$acceptDocumentsAndEditorsDelta (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:10121)
	at Uy.S (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:114979)
	at Uy.Q (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:114759)
	at Uy.M (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:113848)
	at Uy.L (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:112953)
	at Ah.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:111750)
	at D.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
	at D.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
	at Xn.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
	at Ah.value (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:190:13296)
	at D.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
	at D.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
	at Xn.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
	at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:190:11588)
	at MessagePortMain.emit (node:events:518:28)
	at MessagePortMain.emit (node:domain:489:12)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)

My server is defined as below:

"intersystems.servers": {
    "aia2dev4047": {
        "webServer": {
            "scheme": "https",
            "host": "usmbp16csuo1.iscinternal.com",
            "port": 8883,
        },
        "description": "local dev env for aia2dev4047",
        "username": "_SYSTEM"
    }, 
}

and my workspace:

"folders": [
    {
        "name": "aia2dev4047:HSLIB",
	"uri": "isfs://aia2dev4047:hslib/?system=1&filter=*.cls,*.mac,*.inc,*.LOC,*.ZPM&generated=1"
    },
]

Could you help me understand why I was getting those errors and how I should fix those? Thanks!

Extension version: 2.12.11-beta.15
VS Code version: Code 1.97.2 (Universal) (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 23.6.0
Modes:

System Info
Item Value
CPUs Apple M3 Max (16 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 3, 3, 3
Memory (System) 64.00GB (13.18GB free)
Process Argv --enable-proposed-api intersystems-community.vscode-objectscript --crash-reporter-id 14eb1794-a5bf-4f09-96a6-378d443c5ec4
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31242946
customenabled:31241370
5a9hg449:31230677
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
copilothoveron:31245428

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions