Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The TS Client can ignore an error in a response and continue, missing messages #2074

Closed
samwillis opened this issue Dec 2, 2024 · 1 comment

Comments

@samwillis
Copy link
Contributor

On the PGlite + Linearlite demo comments table has 500k rows, it will try and sync, the client will get a 200 response code, but then there is this error in the status column on the dev tools:

(failed)net::ERR_INCOMPLETE_CHUNKED_ENCODING

This is after downloading about 78mb of data.

At that point nothing from that download is emited by the stream but it then seems to go on to the next request as though everything was ok. This uses the offset in the header of the failed response and so we miss a chunk of data. In my case it's during an initial sync so we loose everything.

image

image

@samwillis
Copy link
Contributor Author

I was incorrect in my initial understanding of this when I was looking at it on Thursday (don't debug with a headache!)

It does throw an error Uncaught (in promise) TypeError: Failed to fetch and that shape stops trying to sync.

I'm going to close this issue as #2075 is the real problem - I will add some notes over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant