Open taoeffect opened 1 year ago
@snowteamer So I am 100% sure that this is not caused by a change to a file in shared/
. Instead it happens sometimes shortly after the server comes online after running grunt dev
, when no files have changed.
This is what it looks like in the browser console shortly after the white banner disappears:
Click the disclosure triangle ▶︎ to see the backend log:
@snowteamer proof that this isn't a problem with browser sync! It still happens on port :8000!
@snowteamer Over on Slack I mentioned that I saw this in a previous backend log when the banner came up:
Debug: connection, client, error
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Debug: request, error, abort
Debug: response, error, aborted
However today I briefly saw the banner come and go on port 8000 and didn't see these log messages... so, unclear whether that had anything to do with it.
If the web socket stuff isn't working well, we could consider also switching to EventSource
...
Problem
Sometimes during development the
Trying to reconnect...
banner appears:There isn't much logging that happens on the backend, but in the browser console I see this:
Sometimes it's able to reconnect quickly, and sometimes it takes much longer.
Here is that same error with the fields expanded:
Related issue: #1983
Solution
Find out why this is happening at all.
Bounty
$300 bounty for a clean solution to this (paid in cryptocurrency).