Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
33.71k stars 1.88k forks source link

Prompt just returns the Nunjucks template #5991

Open SkyfallWasTaken opened 1 year ago

SkyfallWasTaken commented 1 year ago

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

z3us22 commented 9 months ago

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

SkyfallWasTaken commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 :)