Skip to content

[Bug]: bad EXTENSIONS_GALLERY input not handled #5433

Closed as not planned
Closed as not planned
@jsjoeio

Description

@jsjoeio

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: any
  • Local OS: macOS
  • Remote OS: macOS
  • Remote Architecture: amd64
  • code-server --version: 4.5.1

Steps to Reproduce

  1. run EXTENSIONS_GALLERY='{"serviceUrl":"undefined"}' code-server --install-extension yolo
  2. observe output

Expected

stderr should print No extension gallery service configured or something else.

Actual

stderr prints connect ECONNREFUSED 127.0.0.1:3000

Logs

EXTENSIONS_GALLERY='{"serviceUrl":"undefined"}' code-server --install-extension yolo
Installing extensions...
connect ECONNREFUSED 127.0.0.1:3000

Screenshot/Video

n/a

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

Identified while working on #5432

Talking to @code-asher about this, we have a theory:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions