Skip to content
This repository was 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

@raghuprathap

Description

@raghuprathap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions