You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the call to context.network.sendRequest with templateTags should not change the data type of a graphql body - like a remplateTag in a normal "send request"
cdreier
changed the title
Plugin: sendRequest calls in requestActions with templateTags change the request body to string
Plugin: sendRequest calls in requestActions with templateTags change type of graphql variables in the request body to string
Jan 20, 2025
Expected Behavior
Plugin Code: https://gist.github.com/cdreier/89b9f52db2ba7bb13087d0f6f181062a
the call to
context.network.sendRequest
withtemplateTags
should not change the data type of a graphql body - like a remplateTag in a normal "send request"query:
variables (screenshot, as i am using the template tag):
raw request timeline body output:
evaluated variables:
the variables are correct rendered as object ✅
Actual Behavior
when running the same request with my
requestActions
code, the body is evaluated as stringraw request timeline body output
evaluated variables:
as you can see, the variables are not longer an object and are rendered as string
Reproduction Steps
Is there an existing issue for this?
Which sync method do you use?
Additional Information
No response
Insomnia Version
10.3.0
What operating system are you using?
Other Linux
Operating System Version
Linux fedora 6.12.7-200.fc41.x86_64
Installation method
rpm download from github
Last Known Working Insomnia version
worked fine in a version a few month back
The text was updated successfully, but these errors were encountered: