1

I have an upload function with AJAX Progress Listener.

However, some requests failed due to jqXHR.status == 500 and errorThrown is "Service Worker Response Error".

Anyone knows how to reproduce and fix this issue?

sakura
  • 294
  • 2
  • 11
  • Based on my understanding, XHR does not work with service worker as service worker only work with `Fetch` which is a non-lifecycle event of service worker. – johnson lai Nov 16 '17 at 05:34
  • That's what you'd see if you're using a service worker, that service worker's `fetch` handler calls `event.respondWith()`, and instead of returning a valid response, an error is returned. To answer your question, you'd need to share what your service worker's `fetch` handler is doing. – Jeff Posnick Nov 21 '17 at 17:30

0 Answers0