-
Notifications
You must be signed in to change notification settings - Fork 16
Error 1: Error: Status Code : 408 after a few minutes #31
Comments
Hi @dawys, thank you for raising this concern. |
Hi Anthrino, i think the problem could be that http does not support promise https://www.valentinog.com/blog/http-requests-node-js-async-await/ |
My thought was wrong. I replaced the http libary with the axios libary but the error 408 was thrown in the same way. |
After 2 days of testing, I found out what was convenient. I have revised the WebSocket handling. How can I send you the changes? |
Hi @dawys, that's great you can push your code into a branch and create a pull request, I can test it out and apply the patch if the bug is resolved, appreciate your efforts. 👍 |
Usually, the best way is to send PR. See https://help.github.com/articles/creating-a-pull-request/ This is much better than simply commiting to a branch in this repo. PR can be reviewed, commented on and updated if nedeed before they're merged. |
I have created a pull request: |
I start the application normally with "npm start" on the server.
Then I load the main page in the browser (x.x.x.x: 3000)
After I pushed the browser window into the background and waited a few minutes I always get the following error on the server:
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (1)
[WS] STATUS: Socket clients (0)
[WS] STATUS: Socket clients (0)
[WS] STATUS: Socket clients (0)
[WS] STATUS: Socket clients (0)
[WS] STATUS: Socket clients (0)
[WS] STATUS: Socket clients (0)
Error 1: Error: Status Code : 408
at ClientRequest. (/usr/local/src/kea-dhcp-admin/lib/api_service.js:46:35)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at HTTPParser.parserOnIncomingClient (_http_client.js:551:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
at Socket.socketOnData (_http_client.js:440:20)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
[WS] STATUS: Socket clients (0)
After that I can not reload the page on the browser and I have to restart the application server side.
What can I do to work around this problem?
The text was updated successfully, but these errors were encountered: