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

Prompt just returns the Nunjucks template #5991

Open
1 task done
SkyfallWasTaken opened this issue May 23, 2023 · 4 comments
Open
1 task done

Prompt just returns the Nunjucks template #5991

SkyfallWasTaken opened this issue May 23, 2023 · 4 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@SkyfallWasTaken
Copy link

SkyfallWasTaken commented May 23, 2023

Expected Behavior

The prompt dialog to open, asking for the value.

Actual Behavior

The Nunjucks template gets returned:

{% prompt 'password', '', '', '', false, false %}

Reproduction Steps

  1. Create a POST request to https://httpbin.org/post that uses Multipart for the body
  2. Use Prompt for one of the form fields
  3. Get something that looks like this:
{
	"args": {},
	"data": "",
	"files": {},
	"form": {
		"username": "{% prompt 'Hey', '', '', '', false, true %}"
	},
	"headers": {
		"Accept": "*/*",
		"Content-Length": "something (I removed some stuff from the response so it wouldn't be right)",
		"Content-Type": "multipart/form-data; boundary=X-INSOMNIA-BOUNDARY",
		"Host": "httpbin.org",
		"User-Agent": "insomnia/2023.2.2",
		"X-Amzn-Trace-Id": "[redacted]"
	},
	"json": null,
	"origin": "[redacted]",
	"url": "http://httpbin.org/post"
}

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.2.2

What operating system are you using?

Windows

Operating System Version

Windows 11 22H2 (22621.1702)

Installation method

Download from insomnia.rest

Last Known Working Insomnia version

No response

@SkyfallWasTaken SkyfallWasTaken added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 23, 2023
@z3us22
Copy link

z3us22 commented Oct 19, 2023

Were you able to solve it? I have this problem as well for several weeks.

@SkyfallWasTaken
Copy link
Author

Were you able to solve it? I have this problem as well for several weeks.

Unfortunately no, I ended up just not using Insomnia in the end

@z3us22
Copy link

z3us22 commented Oct 19, 2023

Were you able to solve it? I have this problem as well for several weeks.

Unfortunately no, I ended up just not using Insomnia in the end

I just found the option which was the problem.
image

When you unselect "Raw template syntax" it looks better again. I was just blind, when opening the settings.

@SkyfallWasTaken
Copy link
Author

Were you able to solve it? I have this problem as well for several weeks.

Unfortunately no, I ended up just not using Insomnia in the end

I just found the option which was the problem. image

When you unselect "Raw template syntax" it looks better again. I was just blind, when opening the settings.

That's great, thanks! I might try it myself later :)

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

2 participants