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

(GraphQL Editor): Plugin Context request body has query variables as a JSON string #8237

Open
2 of 4 tasks
cmcinnes-mdsol opened this issue Dec 6, 2024 · 0 comments
Open
2 of 4 tasks
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@cmcinnes-mdsol
Copy link

Expected Behavior

When using variables with the graphql editor expected the variables element of the plugin context RequestBody text to be an object

"variables": {
	"first": 50,
	"where": {
		"contexts": []
	}
}

Actual Behavior

variables are a json string

"variables":"{\"first\": 50,\"where\": {\"contexts\": []}}"}

the variables in the actual request body being sent are correctly sent as an object.

this is causing our custom request signing plugin to generate the wrong request signature and causing authentication failures.

Reproduction Steps

No response

Is there an existing issue for this?

Which sync method do you use?

  • Git sync.
  • Insomnia Cloud sync.
  • Local only

Additional Information

No response

Insomnia Version

10.2.0

What operating system are you using?

macOS

Operating System Version

14.1.1

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

@cmcinnes-mdsol cmcinnes-mdsol added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

1 participant