-
Notifications
You must be signed in to change notification settings - Fork 823
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
Partial request body when using Queue #1733
Comments
You said "sometimes incomplete"; have you noticed any commonalities in the situations in which the bodies are (or are not) incomplete? Like perhaps if the body is really long it's always incomplete? Also, where are you seeing them as incomplete? In DevTools or in your server-side code?
Could you try experimenting with the v4-alpha-0? In that version I've added convenience methods for adding and removing requests from the queue, so it should be easier to get the request out in your code and log the body to the console or something. See this PR #1710 for details. |
Yes, it seems to happen more frequently when there are at least 5 requests in the queue.
Server-side and in the
Yes, I will give it a try this morning. |
To be clear you want me to try https://github.com/GoogleChrome/workbox/tree/bg-sync-updates correct? I tried the current 4.0.0 RC and the interface for Queues appears to be the same for the moment. |
Figured it out. Was a bug with the way we were using |
Library Affected:
Queue 3.6.2
Browser & Platform:
Google Chrome 70.0.3538.77
Issue or Feature Request Description:
I have the following code for enqueuing failed requests
It successfully enqueues failed requests when I take my machine offline; however, when I bring it back online and sync occurs the request body is sometimes incomplete as if requests were only partially stored (values are empty or truncated). This doesn't occur when using Chrome's offline functionality, only when disconnecting my WIFI.
I haven't figured out how to inspect the body Blob in IndexDB to see if the request is being stored correctly.
The text was updated successfully, but these errors were encountered: