镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Error Loading webview #7389

Description

@jefftuschool

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: MacOS
  • Remote OS: Linux
  • Remote Architecture:
  • code-server --version: 4.101.1

Steps to Reproduce

  1. Upgrade to 4.101.1

Expected

No error as previous 4.100.3

Actual

No error

Logs

Screenshot/Video

Image

Does this bug reproduce in native VS Code?

Yes, this is also broken in native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

Activity

  1. added
    bugSomething isn't working
    triageThis issue needs to be triaged by a maintainer
    on Jun 22, 2025
  2. JokreeTV commented on Jun 22, 2025

    @JokreeTV

    Same issue here, on Firefox its Working.

    Web Browser: Brave/Chrome/Edge
    Local OS: Windows 11 IoT Enterprise Subscription LTSC
    Remote OS: Ubuntu 24.04
    Remote Architecture:
    code-server --version: 4.101.1

    Image
    Image

  3. benz0li commented on Jun 22, 2025

    @benz0li
    Contributor

    @jefftuschool Any errors in the browser console? Other things that may cause problems:

    1. Browser extensions
    2. Private Mode
    3. Firewall
  4. benz0li commented on Jun 22, 2025

    @benz0li
    Contributor

    @JokreeTV Please test with a vanilla browser, meaning no extensions/plugins enabled. (The bitwarden extension is know to cause problems for example)

    Cross reference:

  5. JokreeTV commented on Jun 22, 2025

    @JokreeTV

    @benz0li My Edge and Chrome have no extensions and plugins that is also the reason why I tested it with 4 browsers, with all Chromium Base browsers I have the problem I could still test Opera which is Chromium Base and it will be very safe not go when I install it and test it

  6. danleepw commented on Jun 22, 2025

    @danleepw

    having the same issue. No luck on browser with no extension/plugin enabled. Everything goes back to normal after downgrade back to 4.100.3. Pretty sure that the problem is introduced in version 4.101.1

  7. DiscreteTom commented on Jun 23, 2025

    @DiscreteTom

    Have the same issue. When using Amazon Q plugin, the login page can't be loaded. I'm using Windows+Edge, remote env is a x86 Ubuntu.

    codeserver --version
    
    1.101.1
    bd34cd510f44b25d40b3e30ec9a706a949428c16
    x64

    Error message:

    Error loading webview: Error: Could not register service worker: TypeError: Failed to register a ServiceWorker for scope ('https://xxx.cloudfront.net/stable-bd34cd510f44b25d40b3e30ec9a706a949428c16/static/out/vs/workbench/contrib/webview/browser/pre/') with script ('https://xxx.cloudfront.net/stable-bd34cd510f44b25d40b3e30ec9a706a949428c16/static/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=xxx.cloudfront.net'): A bad HTTP response code (401) was received when fetching the script..

    Before this error, 2 other errors occurred when loading the page:

    signService.ts:90 GET https://xxx.cloudfront.net/stable-bd34cd510f44b25d40b3e30ec9a706a949428c16/static/node_modules/vsda/rust/web/vsda_bg.wasm 404 (Not Found)

    amdX.ts:163 GET https://xxx.cloudfront.net/stable-bd34cd510f44b25d40b3e30ec9a706a949428c16/static/node_modules/vsda/rust/web/vsda.js net::ERR_ABORTED 404 (Not Found)

    These 2 files should be provided by the code server but got 404.

    Hope these may help.

  8. on195594 commented on Jun 23, 2025

    @on195594

    I have the same problem when I use gemini code assist.

  9. hakan-77 commented on Jun 23, 2025

    @hakan-77

    Facing the same issue with Jupyter notebooks. Pinning to 4.100.3 resolves the problem.

  10. code-asher commented on Jun 24, 2025

    @code-asher
    Member

    Huh yeah can confirm that Chromium is broken but Firefox works.

    I wonder why it appears to be dropping credentials?

    Reverting this seems to fix it: microsoft/vscode@a654631

    Have not found anything yet on if this is expected.

    https://stackoverflow.com/questions/72645292/registering-service-worker-behind-authentication-fails-on-esm-modules

  11. DiscreteTom commented on Jun 24, 2025

    @DiscreteTom

    Workaround:

    1. Run curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.100.3 to install the previous version.
    2. Run sudo reboot now to restart the environment.

    Both commands can be run in the code server terminal. After reboot, refresh the web page and it will work.

  12. Spide85 commented on Jun 25, 2025

    @Spide85

    We are experiencing the same error in our company environment. As @DiscreteTom mentioned, we had to revert back. Will this be fixed? We cannot change our company's browser policies to get this working again.

  13. added a commit that references this issue on Jun 25, 2025
    c5c764d
  14. code-asher commented on Jun 25, 2025

    @code-asher
    Member

    I will make a new release today with the fix.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions