Skip to content

Cannot log in to Semgrep VS Code extension – HTTP 500 on token request #296

@abosisio

Description

@abosisio

Hi

I’m unable to complete the login process in the Semgrep VS Code extension in order to sync rules from my organization.

Authentication works correctly when using Semgrep via CLI (tokens generated from the Semgrep dashboard are valid and functional), but login fails consistently in VS Code.

Error message

Failed to complete login process: ERROR Login Failed!
We hit an unexpected failure with our endpoint https://semgrep.dev/api/agent/tokens/requests (status code 500).
Please try again or reach out to Semgrep support at https://semgrep.dev/docs/support/

Expected behavior

Successful authentication in VS Code and synchronization of organization rules, similar to CLI behavior.

Actual behavior

Login fails with HTTP 500 from the Semgrep token request endpoint.

Environment

  • VS Code: v1.108.2
  • OS: Windows 11 + WSL (Ubuntu)
  • Semgrep VS Code extension: v1.16.0
  • Semgrep CLI: working correctly with dashboard-generated tokens

Additional notes

  • The issue occurs both when VS Code is opened in Windows and when connected to WSL.
  • No proxy is configured.
  • Network access to semgrep.dev works normally (CLI, browser).

Let me know if you need additional logs or debugging output.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions