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

Websocket error on handshake #1247

Open
ChevalMonsieur opened this issue Apr 17, 2024 · 3 comments
Open

Websocket error on handshake #1247

ChevalMonsieur opened this issue Apr 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ChevalMonsieur
Copy link

Describe the bug
With the react template mentionned on the Neutralino website : "codezri/neutralinojs-react", the websocket fail to connect when launching the webapp.

To Reproduce
Steps to reproduce the behavior:

  1. on a terminal, do this command neu create myapp --template codezri/neutralinojs-react then cd myapp
  2. still on the terminal, do neu run -- --window-enable-inspector
  3. on the window inspector, check that you have an error either like "WebSocket connection to 'ws://localhost:XXXXX/' failed: The server did not accept the WebSocket handshake." or like "Invalid url for WebSocket ws://localhost:undefined"

Expected behavior
The app should launch without error and the websocket connection should be ok

Screenshots/Screen recordings
image
image

Specifications

  • OS: Ubuntu 22.04.4
  • Neutralinojs version: v5.1.0
  • Neutralinojs client library version: ?
  • Neutralinojs CLI version: 11.0.1
@ChevalMonsieur ChevalMonsieur added the bug Something isn't working label Apr 17, 2024
@shalithasuranga
Copy link
Member

Hello @ChevalMonsieur, thanks for reporting this bug. Could you please check whether the app works as expected when you run the neu run command again?

@ChevalMonsieur
Copy link
Author

This is what i got when trying to recreate the bug on a new app :

In the app
image
In the inspector
image

I don't remember why it bothered me but i guess it has something to do with the Neutralino API.

@shalithasuranga
Copy link
Member

Thanks for checking. Ah, I guess the issue is that the @neutralinojs/lib NPM module was not the latest in the template when you download it in the first time. I think it should work if you create a new app with the latest CLI version :)

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

2 participants