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

using {%} inside of the JSON body of an HTTP request, doesn't send the request. #8158

Open
1 task done
Oppslia opened this issue Nov 8, 2024 · 1 comment
Open
1 task done
Labels
B-bug Bug: general classification S-verified Status: Verified by maintainer

Comments

@Oppslia
Copy link

Oppslia commented Nov 8, 2024

Expected Behavior

{ "statement": "select * from flags where guido like '{%}'" }

This should send a request to the api endpoint.

Actual Behavior

It refreshes, but doesn't crash. It displays the most recent valid/invalid call.

Reproduction Steps

  1. Create a new POST request for any endpoint.
  2. Add a value to a JSON string that contains {%}
  3. See nothing happen
  4. remove any one of the 3 characters
  5. The request sends.

Is there an existing issue for this?

Additional Information

Set up an endpoint and console.log() the request.

The request will not log at all with the json i provided.

Insomnia Version

10.1.1

What operating system are you using?

Windows

Operating System Version

10.0.22631

Installation method

Installed from website

Last Known Working Insomnia version

No response

@Oppslia Oppslia added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Nov 8, 2024
@blackviking27
Copy link

@Oppslia This is due to the sanity check in the index.ts file in the templating folder. Attaching the exact line, I think this is intentional

https://github.com/Kong/insomnia/blob/5016810378ba47a0b491d150ad4b35d46d467661/packages/insomnia/src/templating/index.ts#L66C3-L66C82

@godfrzero godfrzero added S-verified Status: Verified by maintainer and removed S-unverified Status: Unverified by maintainer labels Nov 19, 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-verified Status: Verified by maintainer
Projects
None yet
Development

No branches or pull requests

3 participants