knadh / niltalk

Instant, disposable, single-binary web based live chat server. Go + VueJS.
GNU Affero General Public License v3.0
948 stars 118 forks source link

Unknown error #10

Closed roshanjonah closed 7 years ago

roshanjonah commented 7 years ago

Installed and followed all the steps listed. It runs fine but after creating a room...it says "DEBUG: 2016/11/24 00:33:38 Websocket upgrade failed: 127.0.0.1:17182 websocket: could not find connection header with token 'upgrade'"

On the web browser console...it says "WebSocket connection to 'wss://www.tlk2me.com/w/QIrG8?handle=' failed: Unexpected response code: 400"

What do you think is not right here?

knadh commented 7 years ago

www.tlk2me.com throws a 503 "Service unavailable". Looks like the niltak server is down. Is there a stacktrace?

roshanjonah commented 7 years ago

Please try now. I switched it off earlier because it wasn't working. It produces a 403 on web console after entering the password to enter into the room.

knadh commented 7 years ago

The WebSocket response is missing the 'Upgrade:websocket' header. Looks like you haven't configured Nginx properly to handle the WebSockets requests. The /w location block should have this:

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
ghost commented 6 years ago

hello what is the probleme

run.bat

command-line-arguments

.\niltalk.go:91:69: undefined: syscall.SIGUSR1 .\niltalk.go:94:14: undefined: syscall.SIGUSR1