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

A JavaScript error occurred in the main process #159

Closed
peter-nguyen-contemi opened this issue Jan 30, 2024 · 10 comments
Closed

A JavaScript error occurred in the main process #159

peter-nguyen-contemi opened this issue Jan 30, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@peter-nguyen-contemi
Copy link

Hi, NetPad 0.6.1-win-x64 suddenly stops starting today on my Windows 11 machine. Could you please investigate what went wrong and how I can make it work again. Below are all information that I think are helpful for troubleshooting. Thank you.

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: listen EACCES: permission denied ::1:57931
at Server.setupListenHandle [as _listen2] (node:net:1468:21)
at listenInCluster (node:net:1533:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:1682:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8)

[OK]

image

dotnet --list-sdks
8.0.101 [C:\Program Files\dotnet\sdk]

dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

OS version:
Edition Windows 11 Pro
Version 23H2
Installed on ‎9/‎14/‎2023
OS build 22631.3085
Experience Windows Feature Experience Pack 1000.22684.1000.0

@tareqimbasher
Copy link
Owner

Thank you for reporting this. As a test can you try installing .NET 6 SDK and see if it launches without an error?

@alexanderluettig
Copy link

Hey,
Im getting the same error
image
Also tried to update node but that didnt work either

@tareqimbasher tareqimbasher added the bug Something isn't working label Feb 22, 2024
@martinzima
Copy link

I started getting this error today too, I'm not able to run NetPad anymore. Tried upgrading to latest NetPad version and reinstalling it with no help. FWIW, I'm running Windows 10.

@alexanderluettig
Copy link

Hey, Im getting the same error image Also tried to update node but that didnt work either

updating to netpad 0.7 fixed it for me

@alexanderluettig
Copy link

alexanderluettig commented Apr 25, 2024

Hey, Im getting the same error image Also tried to update node but that didnt work either

updating to netpad 0.7 fixed it for me

Its broken again :D

@tareqimbasher
Copy link
Owner

tareqimbasher commented Apr 25, 2024

I assume downgrading to 0.6.1 doesn't help? Could you try going over your network interfaces and seeing if disabling any of them fixes the issue? See: #111

@tareqimbasher
Copy link
Owner

tareqimbasher commented Apr 25, 2024

Also linking this SO answer if it helps: https://stackoverflow.com/questions/59428844/listen-eacces-permission-denied-in-windows

I haven't been able to replicate the error which makes it really hard to figure out a cause and solution.

@alexanderluettig
Copy link

I assume downgrading to 0.6.1 doesn't help? Could you try going over your network interfaces and seeing if disabling any of them fixes the issue? See: #111

Ok. I tried disabling some of my network interfaces and it seems that this is the problem:
image
Disabling my wireless interface fixed it for me.
And even after renabling it Netpad will start normally now.

Weird :D

@tareqimbasher
Copy link
Owner

tareqimbasher commented Apr 25, 2024

Great! Thanks for reporting back. Seems to be some network interfaces are keeping ports busy or inaccessible somehow on Windows.

@peter-nguyen-contemi @martinzima 👆

@tareqimbasher
Copy link
Owner

Closing as environment issue. I added an entry to Troubleshooting page

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

No branches or pull requests

4 participants