application-shell icon indicating copy to clipboard operation
application-shell copied to clipboard

serviceWorker.js:97 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://localhost:8000/chat/') with script ('https://localhost:8000/chat/service-worker.js'): An unknown error occurred when fetching the script.

Open raghuprathap opened this issue 6 years ago • 6 comments

Hello,

We are deploying react application generated using crate-react-app to Apache Tomcat-8. We have homepage: "/chat" in package.json we generate a chat.war file and deploy to Tomcat, When we access app, now we are getting an error to register service worker with the below error.

Navigated to https://localhost:8000/chat/ An unknown error occurred when fetching the script. serviceWorker.js:97 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://localhost:8000/chat/') with script ('https://localhost:8000/chat/service-worker.js'): An unknown error occurred when fetching the script.

image

Can someone help me with this why this is failing.

Thanks,

Raghu.

raghuprathap avatar Dec 05 '19 08:12 raghuprathap

@raghuprathap, any updates on the issue?

logvinov-vyacheslav avatar Feb 13 '20 18:02 logvinov-vyacheslav

I have almost the same issue. Any Fix??? serviceWorker.js:98 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://192.168.10.102:9090/') with script ('https://192.168.10.102:9090/sw.js'): An SSL certificate error occurred when fetching the script.

Any updates please?

rejebsab avatar Apr 19 '20 03:04 rejebsab

Any update on this?

hasanzahran avatar Nov 01 '20 05:11 hasanzahran

have update for this? *_ *

tonganh avatar Apr 18 '21 07:04 tonganh

Help us

h3lpkey avatar May 12 '21 10:05 h3lpkey

i have same issue ;(

mbehnasr avatar May 25 '21 15:05 mbehnasr