Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

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. #86

Open
raghuprathap opened this issue Dec 5, 2019 · 6 comments

Comments

@raghuprathap
Copy link

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.

@logvinov-vyacheslav
Copy link

@raghuprathap, any updates on the issue?

@rejebsab
Copy link

rejebsab commented Apr 19, 2020

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?

@hasanzahran
Copy link

Any update on this?

@tonganh
Copy link

tonganh commented Apr 18, 2021

have update for this? *_ *

@h3lpkey
Copy link

h3lpkey commented May 12, 2021

Help us

@mbehnasr
Copy link

i have same issue ;(

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

No branches or pull requests

7 participants