Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making GraphQL Request: Broken? #1292

Open
seimic opened this issue Aug 29, 2024 · 1 comment
Open

Making GraphQL Request: Broken? #1292

seimic opened this issue Aug 29, 2024 · 1 comment

Comments

@seimic
Copy link

seimic commented Aug 29, 2024

Hi,

not sure why but all GraphQL queries which I used before are not converted to JSON anymore before sending a request.
I mean queries in format like this.

POST http://127.0.0.1:8080/gql
Content-Type: application/json
X-Request-Type: GraphQL

query ($name: String!) {
   ...
}

The error comes from backend (nestjs/graphql ) and indicates the request body has been sent as is without
any preprocessing at all.

{
  "message": "Unexpected token 'q', \"query ($na\"... is not valid JSON",
  "error": "Bad Request",
  "statusCode": 400
}

Tried all cases X-REQUEST-TYPE: GraphQL, x-request-type: GraphQL..., uninstalled the plugin and installed again.
Nothing works anymore. Any idea what could be wrong? I don't see any changes to REST Client since 2022, just curious
if someone else has same issues and maybe a solution to it.

Environment: Codium v1.92, REST Client v0.26.0.

Kind regards,
Michael

@tphani
Copy link

tphani commented Sep 18, 2024

I faced this issue after updating to latest vscodium (v1.93.1). I rolled back to v1.92.2 (removed all existing profile data and installed) then it is working fine with extension version: 0.25.1. (I am on Mac M1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants