Skip to content

v4.98.0 extension error: "Error while getting the latest version for the extension", "Cannot read properties of undefined (reading 'replace')" #7265

Open
@OliverwengFiltered

Description

@OliverwengFiltered

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

after upgrading to latest version 4.98.0, when code server loads, all the extensions I have installed started to show error. (see image below)

Image

Steps to Reproduce

  1. run latest code server v4.98.0
  2. install an extension.
  3. reload, you will see the error printed on the browser console

Expected

there shouldn't be such errors.

Actual

there are below errors printed on the conosle.

installHook.js:1 ERR Error while getting the latest version for the extension ms-dotnettools.vscode-dotnet-runtime. Cannot read properties of undefined (reading 'replace')

installHook.js:1 ERR Error while getting the latest version for the extension ms-python.debugpy. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension ms-python.python. Cannot read properties of undefined (reading 'replace')

installHook.js:1 ERR Error while getting the latest version for the extension muhammad-sammy.csharp. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension redhat.java. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension vmware.vscode-boot-dev-pack. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension vmware.vscode-spring-boot. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension vscjava.vscode-java-debug. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension vscjava.vscode-spring-boot-dashboard. Cannot read properties of undefined (reading 'replace')
installHook.js:1 ERR Error while getting the latest version for the extension vscjava.vscode-spring-initializr. Cannot read properties of undefined (reading 'replace')

Logs

Screenshot/Video

No response

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

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