Skip to content

Alert error Failed to register a ServiceWorker #508

Closed

Description

@Daners

Describe the Bug
I try to display the git graph, but an alert is thrown with the error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

Steps to Reproduce
Steps to reproduce the behaviour:

  1. Go to 'open git project in VScode'
  2. Click on 'Git Graph" launch button in the Status Bar'
  3. See error: Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

Expected Behaviour
A new tab was expected with the git graph of the project

Environment

  • Git Graph Extension Version: v1.30.0
  • Visual Studio Code Version: v1.56
  • Operating System: Linux Mint 19.3 (Tricia)

Screenshots (optional)
image

image

Additional Context (optional)
VScode recently updated from 1.55 to 1.56

Activity

  1. added
    bug
    on May 11, 2021
  2. Daners commented on May 12, 2021

    @Daners
    Author

    Restart my computer, and everything works fine
    image

  3. added
    vscode-bug
    and removed
    bug
    on May 12, 2021
  4. mhutchie commented on May 12, 2021

    @mhutchie
    Owner

    Hi @Daners,

    Please raise this as a bug in Microsoft’s Visual Studio Code repository. The error you’ve included is caused within Visual Studio Code, and will almost certainly occur for all Webview’s contributed by any extension (the Git Graph View uses a Webview). Visual Studio Code has complete control and manages everything about Webview’s, extension’s only provide HTML + JS + CSS to be displayed in the view.

  5. akshay-nm commented on Mar 30, 2023

    @akshay-nm

    Getting this one again.

  6. jodesous commented on Sep 21, 2023

    @jodesous

    Same for me since 2 weeks, i have this error when i launch GitGraph. I have to restart vscode all the time.

    I'm on linux (Pop!_OS 22.04 LTS)

  7. lorisberti commented on Jul 3, 2024

    @lorisberti

    What's the solution for that? I'm seeing it today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

vscode-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions