Page 1 of 1

Switch 24 Spring - Webhook v8.2

Posted: Tue Jul 02, 2024 5:06 pm
by FloBluewest
Hello Switch Masters and Switch Friends,

I updated switch to version 24 spring and webhook to version 8.2.
Since then, I can't communicate between postman and switch. Could you help me and tell me where I've made a mistake?

URL link I use :

Code: Select all

localhost:51088/scripting/switchscan
Message I send with postman :

Code: Select all

<?xml version="1.0"?>
<root>
    <id>147</id>
    <machineID>HP100K</machineID>
    <actualAction>
        <action>start</action>
        <date>2024-07-02 14:49:32</date>
    </actualAction>
</root>
Here is the webhook response

Code: Select all

{"status":false,"error":"Cannot send webhook response: The script cannot be decrypted."}
EDIT : I downgraded to Webhook 8.1 and now it works.

Re: Switch 24 Spring - Webhook v8.2

Posted: Thu Jul 04, 2024 11:26 am
by germen@grafistore.nl
It is not a Postman issue, it is an issue in version 8.2. We have this with JSON files too.

Re: Switch 24 Spring - Webhook v8.2

Posted: Tue Jul 09, 2024 2:36 pm
by sander
I just did a fresh install of Switch 24 Spring and tested the webhook with your XML and a random JSON, and it works perfectly.

The port is the same, 51088. The only thing missing in your post is whether it's http or https. I tested with https.

Re: Switch 24 Spring - Webhook v8.2

Posted: Mon Jul 29, 2024 1:24 pm
by freddyp
Engineering is not capable of reproducing the issue and there is the reaction from Sander. Can you confirm it is still there?

Re: Switch 24 Spring - Webhook v8.2

Posted: Mon Jul 29, 2024 4:54 pm
by FloBluewest
Thanks Sander and Freddy for your answer.
I I tested again with the webhook 8.2 element, and I still get the same error. I attach the Postman result.
I'm running MacOS SOnoma 15.4 and my Postman version is 11.3.1.
Screenshot 2024-07-29 at 16.52.50.png
Screenshot 2024-07-29 at 16.52.50.png (236.85 KiB) Viewed 9822 times
If I had exactly the same thing with webhook 8.1, I wouldn't have a problem. Am I missing something in the header or in the authorizations for version 8.2?

Re: Switch 24 Spring - Webhook v8.2

Posted: Tue Aug 06, 2024 8:50 am
by vernonvd
I am experiencing the same problem. updated to Switch 2024 and Webhook v8.2 and not working, reverted back to Webhook v8.1 and the problem is solved.