webhook icon indicating copy to clipboard operation
webhook copied to clipboard

Invalid url scape "% a"

Open Techmahindro opened this issue 3 years ago • 5 comments

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".

Techmahindro avatar Aug 10 '22 20:08 Techmahindro

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

moorereason avatar Aug 11 '22 11:08 moorereason

webhook version 2.8.0

Techmahindro avatar Aug 12 '22 08:08 Techmahindro

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

Techmahindro avatar Nov 23 '22 10:11 Techmahindro

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.

fbartels avatar Nov 23 '22 10:11 fbartels

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.

Techmahindro avatar Nov 25 '22 14:11 Techmahindro