goaccess: WebSocket error 400
I’ve got the following error when using web socket:
WebSocket connection to ‘ws://site.com:9879’ failed: Unexpected response code: 400
I run go access with the following parameters:
goaccess -f /var/log/nginx/access.log --log-format COMMON -o /var/www/stats/index.html --real-time-html --port=9879 --ws-url=site.com --origin=site.com
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (8 by maintainers)
I’m running into the same issue
Debugging revealed the funny thing with parsing
Host:
headerif we got
get
substring inHost:
header - then parser thinks it contains request and tries to parse it once againmaybe we should check only
GET
substing in line to decide whether it is request or not@allinurl thanks for merging. I was testing this patch yesterday and it worked like a charm 😉
Real-time html report is great, thank you for developing this!