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

Receiving a "[ERR] [object Event]" on page load #1

Open
jshwek opened this issue May 2, 2022 · 0 comments
Open

Receiving a "[ERR] [object Event]" on page load #1

jshwek opened this issue May 2, 2022 · 0 comments

Comments

@jshwek
Copy link

jshwek commented May 2, 2022

I tried running this out of the box on an Ubuntu server.

I set it up on Nginx as a reverse proxy pointing to http://localhost:8000.

This worked fine on my Windows machine which displays:
Connected to PID 29124 [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] at COMPUTER-NAME (Node v17.6.0)
Main module: ../app.js

In the console, the error is (where APP_URL is my domain.):
WebSocket connection to 'wss://APP_URL/?id=0' failed:

It points to the _makeProtocolSocket function in index.html, specifically:
const socket = new WebSocket((window.location.protocol === 'http:' ? 'ws:' : 'wss:') + '//' + window.location.host + '/?id=' + id);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant