Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
isc-csuo opened this issue Feb 24, 2025 · 14 comments · Fixed by #1490
Open

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

isc-csuo opened this issue Feb 24, 2025 · 14 comments · Fixed by #1490
Assignees
Labels
bug Something isn't working

Comments

@isc-csuo
Copy link

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

@isc-bsaviano
Copy link
Contributor

@isc-csuo Can you turn on the new objectscript.outputRESTTraffic setting added by #1466 and attach the output to this issue?

@isc-bsaviano
Copy link
Contributor

@gjsjohnmurray This is caused by #1485. It's present in beta.14 but not beta.13.

@gjsjohnmurray
Copy link
Contributor

@isc-csuo please fetch the zip from https://github.com/intersystems-community/vscode-objectscript/actions/runs/13527694874/artifacts/2650547364, extract the dev VSIX it contains, and try installing that. I'm hoping it fixes the issue you found.

@RyszardWithAZ
Copy link

In case you need a 2nd person to confirm, I'm also getting it on beta.14 & beta.15. Regressed back to beta.12 and all good again.

@gjsjohnmurray
Copy link
Contributor

@RyszardWithAZ does the dev build linked from my previous comment also fail for you?

@RyszardWithAZ
Copy link

@gjsjohnmurray, I didn't try it, I just downgraded. I can wait for a future beta release with this fixed.

@isc-bsaviano
Copy link
Contributor

The dev build works for me John.

@isc-csuo
Copy link
Author

@gjsjohnmurray I installed the dev build, and now I'm able to see REST responses which I was not able to see even with settings enabled. This time I'm getting the following response:

+- REQUEST - 1:52:04 PM ----------------------------
HEAD https://usmbp16csuo1.iscinternal.com:8883/api/atelier/
COOKIE: <value>
ACCEPT: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION: <value>
+- ERROR --------------------------------------------
{
  "message": "unable to verify the first certificate",
  "name": "Error",
  "stack": "Error: unable to verify the first certificate\n\tat he.from (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:818827)\n\tat _.<anonymous> (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:841350)\n\tat _.emit (node:events:518:28)\n\tat _.emit (node:domain:489:12)\n\tat f.forEach.g.<computed> (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:300993)\n\tat ClientRequest.emit (node:events:530:35)\n\tat ClientRequest.emit (node:domain:489:12)\n\tat emitErrorEvent (node:_http_client:101:11)\n\tat TLSSocket.socketErrorListener (node:_http_client:504:5)\n\tat TLSSocket.emit (node:events:518:28)\n\tat TLSSocket.emit (node:domain:489:12)\n\tat emitErrorNT (node:internal/streams/destroy:169:8)\n\tat emitErrorCloseNT (node:internal/streams/destroy:128:3)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n\tat on.request (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:853703)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async t.AtelierAPI.request (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:400973)\n\tat async t.AtelierAPI.request (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:400946)\n\tat async /Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:625087",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "adapter": [
      "xhr",
      "http",
      "fetch"
    ],
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json",
      "Cache-Control": "no-cache",
      "Authorization": "Basic X1NZU1RFTTpTWVM=",
      "Cookie": "",
      "User-Agent": "axios/1.7.7",
      "Accept-Encoding": "gzip, compress, deflate, br"
    },
    "method": "head",
    "url": "https://usmbp16csuo1.iscinternal.com:8883/api/atelier/",
    "withCredentials": true,
    "httpsAgent": {
      "_events": {},
      "_eventsCount": 2,
      "defaultPort": 443,
      "protocol": "https:",
      "options": {
        "rejectUnauthorized": false,
        "noDelay": true,
        "path": null
      },
      "requests": {},
      "sockets": {},
      "freeSockets": {},
      "keepAliveMsecs": 1000,
      "keepAlive": false,
      "maxSockets": null,
      "maxFreeSockets": 256,
      "scheduling": "lifo",
      "maxTotalSockets": null,
      "totalSocketCount": 0,
      "maxCachedSessions": 100,
      "_sessionCache": {
        "map": {},
        "list": []
      }
    }
  },
  "code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
}
+- END ----------------------------------------------

When I switched to "Window" channel for more error messages, here's what I see:

2025-02-25 13:46:09.222 [warning] [Window] Ignoring the error while validating workspace folder isfs://i4h20243:%sys/?system%3D1 - ENOPRO: No file system provider found for resource 'isfs://i4h20243:%sys/?system%3D1'
2025-02-25 13:46:09.224 [warning] [Window] Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'attributableCoverage' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2025-02-25 13:46:09.224 [warning] [Window] Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.python' wants API proposal 'contribIssueReporter' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2025-02-25 13:46:09.224 [warning] [Window] Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.debugpy' wants API proposal 'contribIssueReporter' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2025-02-25 13:46:09.225 [warning] [Window] Via 'product.json#extensionEnabledApiProposals' extension 'redhat.java' wants API proposal 'documentPaste' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2025-02-25 13:46:09.338 [warning] [Window] Ignoring the error while validating workspace folder isfs://aia2dev4047:hslib/?system%3D1%26filter%3D%2A.cls%2C%2A.mac%2C%2A.inc%2C%2A.LOC%2C%2A.ZPM%26generated%3D1 - ENOPRO: No file system provider found for resource 'isfs://aia2dev4047:hslib/?system%3D1%26filter%3D%2A.cls%2C%2A.mac%2C%2A.inc%2C%2A.LOC%2C%2A.ZPM%26generated%3D1'
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.panel.chat.view.copilot in workbench.panel.chat
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.panel.chat.view.edits in workbench.panel.chatEditing
2025-02-25 13:46:09.360 [info] [Views] Added views:outline in workbench.view.explorer
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.view.search in workbench.view.search
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.scm in workbench.view.scm
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.panel.markers.view in workbench.panel.markers
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.panel.output in workbench.panel.output
2025-02-25 13:46:09.360 [info] [Views] Added views:terminal in terminal
2025-02-25 13:46:09.360 [info] [Views] Added views:timeline in workbench.view.explorer
2025-02-25 13:46:09.360 [info] [Views] Added views:workbench.explorer.fileView in workbench.view.explorer
2025-02-25 13:46:09.419 [info] [Window] Started local extension host with pid 86980.
2025-02-25 13:46:09.455 [info] [Views] Added views:workbench.debug.welcome in workbench.view.debug
2025-02-25 13:46:09.552 [warning] [Window] [redhat.vscode-yaml]: Cannot register 'redhat.telemetry.enabled'. This property is already registered.
2025-02-25 13:46:09.572 [info] [Views] Added views:intersystems-community_servermanager in workbench.view.extension.intersystems-community_servermanager
2025-02-25 13:46:09.572 [info] [Views] Added views:extension.vsKubernetesExplorer,extension.vsKubernetesHelmRepoExplorer,kubernetes.cloudExplorer in workbench.view.extension.kubernetesView
2025-02-25 13:46:09.572 [info] [Views] Added views:targetsContainers,devVolumes in workbench.view.remote
2025-02-25 13:46:09.572 [info] [Views] Added views:remoteTargets in workbench.view.remote
2025-02-25 13:46:09.572 [info] [Views] Added views:postman-for-vscode.sidebar-panel in workbench.view.extension.sidebar-panel
2025-02-25 13:46:09.572 [info] [Views] Added views:postman-console-view in workbench.view.extension.postman-console-view-container
2025-02-25 13:46:09.572 [info] [Views] Added views:thunder-client-sidebar in workbench.view.extension.thunder-client
2025-02-25 13:46:09.656 [info] [Views] Added views:workbench.panel.repl.view in workbench.panel.repl
2025-02-25 13:46:09.761 [warning] [Window] Authentication provider intersystems-server-credentials was not declared in the Extension Manifest.
2025-02-25 13:46:09.769 [warning] [Window] [mainThreadStorage] large extension state detected (extensionId: intersystems-community.vscode-objectscript, global: false): 628.900390625kb. Consider to use 'storageUri' or 'globalStorageUri' to store this data on disk instead.
2025-02-25 13:46:09.833 [info] [Views] Added views:ObjectScriptProjectsExplorer in workbench.view.extension.intersystems-community_servermanager
2025-02-25 13:46:09.887 [info] [Window] Settings Sync: Account status changed from uninitialized to unavailable
2025-02-25 13:46:09.888 [info] [Cloud Changes] Prompting to enable cloud changes, has application previously launched from Continue On flow: false
2025-02-25 13:46:10.247 [info] [Views] Added views:workbench.view.testing in workbench.view.extension.test
2025-02-25 13:46:10.739 [error] [Window] [Extension Host] NoPermissions (FileSystemError): dot-folders not supported by server
	at t.FileSystemProvider._lookupAsFile (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:670863)
	at t.FileSystemProvider._lookup (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:670419)
	at t.FileSystemProvider.stat (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:659511)
	at Object.stat (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:112:6931)
	at async /Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:299:3849
	at async Promise.all (index 0)
	at async ka (/Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:299:3735)
	at async Promise.all (index 0)
	at async wP (/Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:333:14664)
	at async cQ (/Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:416:9146)
	at async /Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:415:24665
2025-02-25 13:46:12.008 [info] [Window] [perf] Render performance baseline is 11ms
2025-02-25 13:46:18.673 [warning] [Window] Ignoring the error while validating workspace folder isfs://aia2dev4047:hslib/?system%3D1%26filter%3D%2A.cls%2C%2A.mac%2C%2A.inc%2C%2A.LOC%2C%2A.ZPM%26generated%3D1 - TypeError: Cannot read properties of undefined (reading 'toLocaleTimeString')
2025-02-25 13:46:18.701 [info] [Views] Removed views:workbench.view.testing from workbench.view.extension.test
2025-02-25 13:46:18.723 [error] [Window] Model is disposed!: Error: Model is disposed!
    at bf.jb (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:249:257)
    at bf.getLineCount (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:251:4127)
    at tCe.H (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2481:1647)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2481:1569
2025-02-25 13:46:18.726 [info] [Window] Started local extension host with pid 87065.
2025-02-25 13:46:18.775 [info] [Views] Removed views:workbench.panel.repl.view from workbench.panel.repl
2025-02-25 13:46:18.928 [info] [Views] Added views:workbench.panel.repl.view in workbench.panel.repl
2025-02-25 13:46:19.159 [warning] [Window] Authentication provider intersystems-server-credentials was not declared in the Extension Manifest.
2025-02-25 13:46:19.195 [warning] [Window] [mainThreadStorage] large extension state detected (extensionId: intersystems-community.vscode-objectscript, global: false): 628.900390625kb. Consider to use 'storageUri' or 'globalStorageUri' to store this data on disk instead.
2025-02-25 13:46:19.413 [info] [Views] Added views:workbench.view.testing in workbench.view.extension.test
2025-02-25 13:46:19.708 [error] [Window] [Extension Host] NoPermissions (FileSystemError): dot-folders not supported by server
	at t.FileSystemProvider._lookupAsFile (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:670863)
	at t.FileSystemProvider._lookup (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:670419)
	at t.FileSystemProvider.stat (/Users/csuo/.vscode/extensions/intersystems-community.vscode-objectscript-2.12.11-dev.1490/dist/extension.js:2:659511)
	at Object.stat (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:112:6931)
	at async /Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:299:3849
	at async Promise.all (index 0)
	at async ka (/Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:299:3735)
	at async Promise.all (index 0)
	at async wP (/Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:333:14664)
	at async cQ (/Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:416:9146)
	at async /Users/csuo/.vscode/extensions/ms-vscode-remote.remote-containers-0.397.0/dist/extension/extension.js:415:24665
2025-02-25 13:46:52.018 [info] [Cloud Changes] Prompting to enable cloud changes, has application previously launched from Continue On flow: false

@isc-csuo
Copy link
Author

I should also point out that the server I'm connecting to has been in my laptop for a while and I have been connecting to it fine until yesterday. I will paste my settings and certificate just to rule out possibilities.

@isc-csuo
Copy link
Author

isc-csuo commented Feb 25, 2025

Image Image Image

I pasted my setup following the instruction on Establish an HTTPS Connection Using a Self-Signed Certificate because that's the immediate answer when I searched through internal resources using the error message "unable to verify the first certificate".

@isc-csuo
Copy link
Author

Don't mean to flood the comment area but I saw a warning message I missed previously among those error messages I posted:

WARN Ignoring the error while validating workspace folder isfs://i4h20243:%sys/?system%3D1 - TypeError: Cannot read properties of undefined (reading 'toLocaleTimeString')

Thanks for looking into it!

@isc-bsaviano
Copy link
Contributor

@isc-csuo the toLocaleTimeString error is caused by the code that logs the REST traffic. The request timestamp isn't being set before an error was thrown I can fix that, but it's unrelated to your error. I see in the ERROR block of your REST traffic log that the rejectUnauthorized property of the httpsAgent is false, which is correct. Have you tried restarting VS Code? It will refresh the certificates from the OS upon restart.

@isc-csuo
Copy link
Author

@isc-bsaviano I just tried restarting vscode but still seeing the exact same error

@isc-bsaviano
Copy link
Contributor

@isc-csuo Did you change anything about your VS Code or IRIS setup right before this stopped working? Maybe a VS Code core update or certificate change? Other than checking the value of http.proxyStrictSSL, our extensions don't do anything related to TLS certificates. That is all handled by VS Code core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants