Webhook URI encoding

alerting

(Miika Kankare) #1

I have a pre-encoded URI that I'm trying to call with the Webhook action.

/v1/signal/arn%3Aopenstack%3Aheat%3A%3Afcaf9f...

Webhook seems to re-encode the %'s in the URI. Resulting in %253A, which doesn't work. The params also have encoded characters if that makes any difference.

I tried to put the path in without the encoded characters, tried escaping the %'s with \ and such, but no luck.

Any ideas on how to handle this?


(Alexander Reelsen) #2

Hey,

indeed, watcher does an encode of the URI internally, there is no way of changing this behaviour currently, so the easiest solution currently would be to just run another decode as slashes etc should not be touched by that on the client side.

--Alex


(system) #3