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

Invalid url scape "% a" #598

Open
Techmahindro opened this issue Aug 10, 2022 · 5 comments
Open

Invalid url scape "% a" #598

Techmahindro opened this issue Aug 10, 2022 · 5 comments
Labels

Comments

@Techmahindro
Copy link

Techmahindro commented Aug 10, 2022

hello

I am using webhook to receive hook from a monitoring system.

the way it works is simple my payload captures everything that arrives in a json file.

[
  {
    "id": "testing_start",
    "execute-command": "/monitoring/.local/bin/scripts/redeploy.sh",
    "command-working-directory":"/monitoring/.local/bin/",
    "pass-arguments-to-command":
    [
        {
          "source": "entire-payload"
        }
    ]
  }
]

the problem is that when I receive a hook that contains a special character a % symbol I get the error

error parsing from payload invalid URL escape "% a".

@moorereason
Copy link
Collaborator

What version of webhook? Can you show an example request?

@Techmahindro
Copy link
Author

webhook version 2.8.0

@Techmahindro
Copy link
Author

someone could give me a solution I have the same problem.

@fbartels
Copy link

fbartels commented Nov 23, 2022

someone could give me a solution I have the same problem.

you are the op ;-)

Can you provide some reproducer. maybe a curl command that posts the data along with your hooks.json? maybe that would help reproducing the problem and moving it further.

@Techmahindro
Copy link
Author

it's almost the same as the source problem, i'm using webhook to collect events coming from a monitoring system. we get a simple curl with the parameters. the problem is when that curl contains a sign like % or & forsea and gives the error in the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants