Getting error message:  app.js:249 Service Worker Error TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script.

newjeep19
newjeep19 used Ask the Experts™
on
Getting app.js:249 Service Worker Error TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script. When trying to access the service worker using JavaScript. Need help ASAP. I can add my code if needed.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
Hi newjeep19,

I think this is a Node.js question. HTTP 404 is an error that occurs when a file/resource is not available at the address given i.e. if your page's name is index.html and you try to open index.htm server will give you HTTP 404. I have tagged Node.js so other experts will be notified about this query.

In the mean time can you share your source where you are getting this error and double check if all the referenced files are present?

Regards,
Chinmay.

Author

Commented:
Fixed error my self by updating my serviceWorker

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial