Coder Social home page Coder Social logo

Bad Response + Manifest: Line: 1, column: 1, Syntax error. + Failed to register a ServiceWorker about webessentials.aspnetcore.serviceworker HOT 3 OPEN

Becca37 avatar Becca37 commented on June 12, 2024
Bad Response + Manifest: Line: 1, column: 1, Syntax error. + Failed to register a ServiceWorker

from webessentials.aspnetcore.serviceworker.

Comments (3)

Budsy avatar Budsy commented on June 12, 2024

This error display in Chrome and Edge developer's tools console error listing shed light on the problem when I had this same issue. The domain part of the path seemed to be missing in the request paths. I eliminated the errors by removing the BaseRoute = "/" that I had in my .NET 5 Startup configuration settings for the AddProgressiveWebApp method.

Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The origin of the provided scriptURL ('https:serviceworker') does not match the current origin ('https://').

GET https://manifest.webmanifest/
net::ERR_NAME_NOT_RESOLVED

from webessentials.aspnetcore.serviceworker.

Becca37 avatar Becca37 commented on June 12, 2024

Thanks, @Budsy! Since I do not have any configuration settings added to the AddProgressiveWebApp method and the error messages are different I don't think that's my issue. I'd certainly try removing a slash, if I had one. :0)

from webessentials.aspnetcore.serviceworker.

ArisNance avatar ArisNance commented on June 12, 2024

Using https:// worked for me!

from webessentials.aspnetcore.serviceworker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.