ERROR :: Error trying to connect to .local : undefined

Hello everyone,

I tried following this video: https://www.youtube.com/watch?v=YykIftUiMGU to setup my IDE.

But I run into the error in the title of this thread.

Here is the developer log:

  INFO Invoking resolveAuthority(wsl)...
  INFO [LocalProcess0][resolveAuthority(wsl,1)][0ms] obtaining proxy...
log.ts:440  INFO MCP Registry configured: https://api.mcp.github.com/2025-09-15
log.ts:440  INFO Started local extension host with pid 27384.
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][8110ms] invoking...
log.ts:460   ERR navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.: PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.
    at get (file:///c:/Users/msuthe/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:393:6610)
    at Ye (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:49943)
    at R (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:45899)
    at c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:49796
    at k (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:331335)
    at c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:379045
    at Object.f [as use] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:403567)
    at c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:402921
    at Object.watch (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:402932)
    at b (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:404804)
    at e.<computed> [as initialize] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:378323)
    at e.r [as initialize] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:349209)
    at c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:387122
    at p (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:341770)
    at e.<computed> [as initialize] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:386312)
    at t.r [as initialize] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:349209)
    at Array.<anonymous> (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:56537)
    at Et (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:51449)
    at u (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:56498)
    at he (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:150349)
    at e.<computed> (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:153613)
    at Object.initialize (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:349963)
    at c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:67620
    at p (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:341770)
    at e.<computed> [as initialize] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:67545)
    at t.r [as initialize] (c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:349209)
    at c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:356456
    at async c:\Users\msuthe\.vscode\extensions\ms-vscode-remote.remote-wsl-0.104.3\dist\node\extension.js:2:355860
error @ log.ts:460
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][9114ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][10115ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][11115ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][12116ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][13117ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][14112ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][15110ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][16119ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][17120ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][18121ms] waiting...
log.ts:440  INFO [LocalProcess0][resolveAuthority(wsl,1)][18522ms] returned WebSocket(127.0.0.1:58482)
log.ts:440  INFO resolveAuthority(wsl) returned 'WebSocket(127.0.0.1:58482)' after 18523 ms
log.ts:440  INFO Creating a socket (renderer-Management-af243565-44f2-4ab9-adb4-373010dadd19)...
log.ts:440  INFO Creating a socket (renderer-ExtensionHost-7789344d-078a-4b27-b79d-307a68bac124)...
log.ts:440  INFO Creating a socket (renderer-ExtensionHost-7789344d-078a-4b27-b79d-307a68bac124) was successful after 1881 ms.
log.ts:440  INFO Creating a socket (renderer-Management-af243565-44f2-4ab9-adb4-373010dadd19) was successful after 2247 ms.
log.ts:440  INFO Settings Sync: Account status changed from uninitialized to unavailable
log.ts:440  INFO [perf] Render performance baseline is 34ms
log.ts:440  INFO Auto updating outdated extensions. toradex.apollox-vscode
log.ts:460   ERR [Extension Host] (node:136) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
error @ log.ts:460
console.ts:137 [Extension Host] (node:136) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
gbs @ console.ts:137
console.ts:137 [Extension Host] [10-13 09:20:37.613] TCB Extension activated
console.ts:137 [Extension Host] [10-13 09:20:37.620] TC Build IntelliSense schema loaded
console.ts:137 [Extension Host] [10-13 09:20:37.788] Activating Torizon IDE ...
console.ts:137 [Extension Host] [10-13 09:20:37.789] Torizon IDE version :: 3.1.1
console.ts:137 [Extension Host] [10-13 09:20:38.037] Latest Torizon IDE published :: 3.1.144
console.ts:137 [Extension Host] [10-13 09:20:38.037] User defined host IP address found
console.ts:137 [Extension Host] [10-13 09:20:38.038] Host IP address OK
console.ts:137 [Extension Host] [10-13 09:20:38.043] Docker installed OK
console.ts:137 [Extension Host] [10-13 09:20:38.268] Docker running OK
console.ts:137 [Extension Host] [10-13 09:20:38.597] Docker compose OK
console.ts:137 [Extension Host] [10-13 09:20:38.603] PowerShell OK
console.ts:137 [Extension Host] [10-13 09:20:38.609] git OK
console.ts:137 [Extension Host] [10-13 09:20:38.616] dig OK
console.ts:137 [Extension Host] [10-13 09:20:38.621] avahi-resolve OK
console.ts:137 [Extension Host] [10-13 09:20:38.627] nmap OK
console.ts:137 [Extension Host] [10-13 09:20:38.632] iputils-ping OK
console.ts:137 [Extension Host] [10-13 09:20:38.637] file OK
console.ts:137 [Extension Host] [10-13 09:20:38.642] sshpass OK
console.ts:137 [Extension Host] [10-13 09:20:38.702] iproute2 OK
console.ts:137 [Extension Host] [10-13 09:20:38.708] rsync OK
console.ts:137 [Extension Host] [10-13 09:20:38.714] python3 OK
console.ts:137 [Extension Host] [10-13 09:20:38.719] pipx OK
console.ts:137 [Extension Host] [10-13 09:20:38.720] Cloning project templates
console.ts:137 [Extension Host] [10-13 09:20:38.720] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
console.ts:137 [Extension Host] [10-13 09:20:38.720] Templates branch: next
console.ts:137 [Extension Host] [10-13 09:20:38.720] Templates tag/hash: next
console.ts:137 [Extension Host] [10-13 09:20:38.728] Project templates clone of branch next OK
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Illegal argument: base
gbs @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Illegal argument: base
	at Ce (file:///root/.vscode-server/bin/03c265b1adee71ac88f833e065f7bb956b60550a/out/vs/workbench/api/node/extensionHostProcess.js:7:1458)
	at new hc (file:///root/.vscode-server/bin/03c265b1adee71ac88f833e065f7bb956b60550a/out/vs/workbench/api/node/extensionHostProcess.js:110:44700)
	at TorizonCoreBuilderFileIntellisense.registerWorkspaceChangeListeners (/root/.vscode-server/extensions/toradex.tcb-vscode-0.0.18-linux-x64/out/TorizonCoreBuilderYamlFile.js:199:37)
	at TorizonCoreBuilderFileIntellisense.<anonymous> (/root/.vscode-server/extensions/toradex.tcb-vscode-0.0.18-linux-x64/out/TorizonCoreBuilderYamlFile.js:113:18)
	at Generator.next (<anonymous>)
	at fulfilled (/root/.vscode-server/extensions/toradex.tcb-vscode-0.0.18-linux-x64/out/TorizonCoreBuilderYamlFile.js:28:58)
	at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
gbs @ console.ts:137
mainThreadExtensionService.ts:78 [Toradex.tcb-vscode]Illegal argument: base
$onExtensionRuntimeError @ mainThreadExtensionService.ts:78
mainThreadExtensionService.ts:79 Error: Illegal argument: base
	at Ce (file:///root/.vscode-server/bin/03c265b1adee71ac88f833e065f7bb956b60550a/out/vs/workbench/api/node/extensionHostProcess.js:7:1458)
	at new hc (file:///root/.vscode-server/bin/03c265b1adee71ac88f833e065f7bb956b60550a/out/vs/workbench/api/node/extensionHostProcess.js:110:44700)
	at TorizonCoreBuilderFileIntellisense.registerWorkspaceChangeListeners (/root/.vscode-server/extensions/toradex.tcb-vscode-0.0.18-linux-x64/out/TorizonCoreBuilderYamlFile.js:199:37)
	at TorizonCoreBuilderFileIntellisense.<anonymous> (/root/.vscode-server/extensions/toradex.tcb-vscode-0.0.18-linux-x64/out/TorizonCoreBuilderYamlFile.js:113:18)
	at Generator.next (<anonymous>)
	at fulfilled (/root/.vscode-server/extensions/toradex.tcb-vscode-0.0.18-linux-x64/out/TorizonCoreBuilderYamlFile.js:28:58)
	at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:79
log.ts:460   ERR An unknown error occurred. Please consult the log for more details.
error @ log.ts:460
console.ts:137 [Extension Host] [10-13 09:20:39.391] Project templates fetched OK
console.ts:137 [Extension Host] [10-13 09:20:39.423] Checkout templates repo to tag origin/next OK
console.ts:137 [Extension Host] [10-13 09:20:41.176] xonsh installation OK
console.ts:137 [Extension Host] [10-13 09:20:41.177] Checking connected devices ...
console.ts:137 [Extension Host] [10-13 09:20:41.177] The torizon.autoScan setting is disabled.
console.ts:137 [Extension Host] [10-13 09:20:41.178] Debian bookworm packages list load OK
console.ts:137 [Extension Host] [10-13 09:20:41.178] Torizon IDE extension activated
console.ts:137 [Extension Host] [10-13 09:21:11.258] Trying to connect to 10.8.0.83
console.ts:137 [Extension Host] first login success, checking if we should change the default password...
console.ts:137 [Extension Host] root@verdin-am62-15563587:~# 
console.ts:137 [Extension Host] loged in!
console.ts:137 [Extension Host] exit

console.ts:137 [Extension Host] logout

console.ts:137 [Extension Host] ret from easy pairing ...
console.ts:137 [Extension Host] ret from easy pairing :: 127
console.ts:137 [Extension Host] ret from easy pairing2 ...
console.ts:137 [Extension Host] ret from easy pairing2 :: 127
console.ts:137 [Extension Host] ret from mkdir docker.service.d ...
console.ts:137 [Extension Host] [10-13 09:21:14.969] ERROR :: Error trying to connect to .local : undefined
notificationsAlerts.ts:42 Error trying to connect to .local : undefined
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
C @ event.ts:1201
D @ event.ts:1212
fire @ event.ts:1236
addNotification @ notifications.ts:228
notify @ notificationService.ts:234
(anonymous) @ mainThreadMessageService.ts:93
g @ mainThreadMessageService.ts:56
$showMessage @ mainThreadMessageService.ts:50
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
C @ event.ts:1201
fire @ event.ts:1232
fire @ ipc.net.ts:652
A @ ipc.net.ts:1022
(anonymous) @ ipc.net.ts:879
C @ event.ts:1201
fire @ event.ts:1232
acceptChunk @ ipc.net.ts:394
(anonymous) @ ipc.net.ts:350
(anonymous) @ browserSocketFactory.ts:231
C @ event.ts:1201
fire @ event.ts:1232
j.onload @ browserSocketFactory.ts:92
FileReader
t @ browserSocketFactory.ts:105
s @ browserSocketFactory.ts:111

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Troubleshooting Torizon IDE Extension Connection Error

Based on your developer log, you’re encountering a connection error when trying to connect to your Torizon device. The error message “Error trying to connect to .local : undefined” indicates an issue with the device discovery process.

Common Troubleshooting Steps

Check Network Connectivity

First, verify basic network connectivity between your development machine and the Torizon device (1):

$ ping -W 1 -c 1 <ip-address>

(1)

If you receive “ping: socket: Operation not permitted”, you may need to set the capability (1):

$ sudo setcap cap_net_raw+ep /bin/ping

(1)

Port Requirements

The Torizon IDE Extension requires specific ports to be accessible between your machine and the development board (1):

  • 22 (Dev Board SSH Connection)
  • 2375 (Docker API)
  • 5002 (Local Docker Registry)
  • 2222 (Container SSH Connection)

(1)

Host IP Configuration Issue

Your log shows a potential IP address configuration problem. If the extension is not getting the correct IP address of the host, you can manually configure it using the torizon.overwriteHostIp setting (1), (2).

Set this in your VS Code global settings to the correct IP address from the main interface that your host is using (2).

Additional Debugging

To get more detailed information about the issue, you can access the VS Code Developer Tools (1):

  1. Open the VS Code command palette
  2. Select Developer: Toggle Developer Tools
  3. Click on the Console tab and check for additional error messages and stack traces

This should provide more insight into the root cause of the connection failure (1).

Extension Version Consideration

Your log shows you’re using Torizon IDE Extension version 3.1.1, while version 3.1.144 is available. Consider updating to the latest version, as newer versions often include bug fixes for connection issues.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Greetings @mut,

Looking at the logs, it appears the extension itself was able to initialize without major issue.

The connection error seems to be referring to the Toradex device you have added to the extension. Could you provide more information about this device. What version of Torizon OS is this device running?

Also, have you tried to remove and re-add the device? Does the issue repeat if you do that?

Best Regards,
Jeremias

Hi Jeremias,

The device is a Verdin AM62 on the Verdin Development board. I used Toradex Easy Installer to flash a Toradex Reference Multimedia Image.

The “pretty name” is TDX Wayland with XWayland 7.3.0+build.8 (scarthgap).

I cannot remove the device from the IDE Extension because I never could add it in the first place.

Best Regards,

Matthias

I used Toradex Easy Installer to flash a Toradex Reference Multimedia Image.

Oh well that’s the issue right there then. The Visual Code IDE extension only explicitly works when the device is running Torizon OS as stated here: Connect a Target Device | Toradex Developer Center

It is not made to work with our reference images (multimedia or minimal).

If you want to use this VSCode extension please reinstall the device with Torizon OS.

Best Regards,
Jeremias

Ok, I thought the toradex reference images were torizon OS images.

Now it works.

Glad I was able to help clarify.

Best Regards,
Jeremias