Closed KyleAMathews closed 3 days ago
That link at the end of the error message could go to a section on this in the troubleshooting guide.
Yeah that'd be perfect
Perhaps even simpler is we just check that we never make a request to the same URL twice. As that covers a lot of potential problems.
Yup, avoiding the scenarios where we hammer the sever with requests in a loop would be good.
There are cases where we do want to call the same URL more than once — eg when trying to sync a table that doesn’t exist yet, we get an error response and keep trying the same URL until the table is created. So there we maybe want more of a backoff.
Two people on discord today reported they hit an infinite loop where a shape request with offset=-1 came back with a 200 status but was missing the
electric-offset
header.Both had proxies that for one reason or another had stripped the header(s).
Electric doesn't work without its headers so we should give a more helpful clue to people writing middleware on what is wrong.
The error message should look something like: