Skip to content

httpyac is URL encoding JSON requests - sometimes #373

@as-jhance

Description

@as-jhance

I have an intermittent problem, usually happening after a first successful one where the JSON body of a POST request gets URL encoded. My request has an email address like:

user@domain.com

and this is what's in the variable, at the beginning. But after the first request that becomes:

user%40domain.com

Both when I hover over the variable on the screen and when I see the request on the API side.

I've read through the docs and I don't see any option to control this and it's repeatable every time.

On a "cold start" of Visual Studio Code, I see this after selecting my profiles with variables:

Image

This first request works on the back-end. But on the second attempt and any subsequent attempts, I get this:

Image

the "@" has been URL encoded to "%40" and the API fails since this is not a valid email address.

Is this a bug or am I missing an option to control this behavior?

VS Code version:

Image

httpYac Version:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions