Skip to content

ERROR - Unexpected end of JSON input #1760

Description

@Venkatesh-Emis

Describe the bug

Having the client credentials in the environment and referring them in the oauth2 section of the request is producing the error as in the title "ERROR - Unexpected end of JSON input". However, when switching the http request library to got I am able to generate the token.
To Reproduce

Store some client credentials and token url in the environment.
Refer them for any request in oauth2 section of the Auth.
Click on generate token.
Default http request library should be axios.
Expected behavior

Token should be generated similar to got library.
Platform:

  • OS: Windows
  • vscode version:1.129.1
  • node version: v24.13.1
  • extension version: 2.41.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions