evan-buss / openbooks

Search and Download eBooks
https://evan-buss.github.io/openbooks/
MIT License
1.78k stars 58 forks source link

"Server connection closed" #77

Open fabbermen opened 2 years ago

fabbermen commented 2 years ago

When opening the page for openbooks, I get a "Welcome, connection established". Sometimes I manage to use it for 20 seconds, make one search, or even successfully download a file. However, the service soon stops working. The little bell for notifications turns from green to gray, and I get the following error when trying to do anything: "Server connection closed. Reload page". If I reload the page, I get to enjoy it for 20 more seconds or so. Maybe the IRC server, or some bots in the channels, are recognizing openbooks and automatically kicking me out? I have no visibility on what happens in the background, but that's the feeling I get. Any idea how to avoid this behavior?

Thanks a lot for your great software

momelod commented 2 years ago

I'm also experiencing this issue when running it through nginx reverse proxy. I configure nginx to upgrade the http connection to http1.1 thinking it might be web socket related?

drifter75 commented 5 months ago

getting below error, when deployed with traefik.

2024/01/20 13:35:50 CLIENT (ob123): New client created.
2024/01/20 13:35:50 CLIENT (ob123): CONNECT Message Received
2024/01/20 13:35:52 CLIENT (ob123): Connection Closed: websocket: close 1001 (going away)
2024/01/20 13:35:52 CLIENT (ob123): Error writing JSON to websocket: websocket: close sent