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

JavaScript error in the main process: ECONNRESET TLSWrap.onStreamRead #8186

Open
eebomarsi opened this issue Feb 28, 2025 · 7 comments
Open
Labels
bug Something isn't working

Comments

@eebomarsi
Copy link

Describe the bug
Ever since upgrading to Lens 2025:2:141554-latest (Electron: 33.4.0 Chrome: 130.0.6723.191 Node: 20.18.1), it hits a sequence of Javascript errors every few minutes:

A JavaScript error occurred in the main process
Uncaught Exception:
Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20)

To Reproduce
Steps to reproduce the behavior:
Just starting the new app with 3 clusters will cause the error. No user input needed.

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:

Uncaught Exception:
Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20)
at messageBox (node:electron/js2c/browser_init:2:26265)
at Object.showMessageBox (node:electron/js2c/browser_init:2:21216)
at /Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/electron-main/dist/index.js:695:36
at /Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/core-main/dist/index.js:2862:12
at onClick (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/core-main/dist/index.js:2887:9)
at MenuItem.click (node:electron/js2c/browser_init:2:35295)
at a._executeCommand (node:electron/js2c/browser_init:2:40710)

Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.

Additional context

@eebomarsi eebomarsi added the bug Something isn't working label Feb 28, 2025
@Christiaanvdl
Copy link

hello @eebomarsi , Thank you for contacting lens pro support ! I have reached out to our development team .

@rehmanz
Copy link

rehmanz commented Mar 4, 2025

+1 Hitting the same issue. Very annoying as the dialog box keeps popping up and does not even let you quit the application.

@tab1293
Copy link

tab1293 commented Mar 4, 2025

Yeah I'm running in to this issue very often now as well

@SamayTessell
Copy link

Same issue with me as well.

@yaizkazani
Copy link

yaizkazani commented Mar 5, 2025

This is just plain crazy - i have to click >10 times on the error message since the last update!!! This app produces way over 100 error messages like this during the day !

Usually i just lock my macbook for some time and when i unlock it >10 messages like this one are waiting for me.

A JavaScript error occurred in the main process

Uncaught Exception:
Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20)

@yaizkazani
Copy link

yaizkazani commented Mar 7, 2025

After last update i see less messages but they are still there. How to reproduce: lock your macbook, unlock - voila

@yashmittal-git
Copy link

+1 This is very irritating, everytime you open lens there's bunch of OK button pending for you to resume work.
@Christiaanvdl : Any update? ETA on resolution?

Image

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

7 participants