Switch 24 Spring - Webhook v8.2

Post Reply
User avatar
FloBluewest
Newbie
Posts: 2
Joined: Wed May 22, 2024 8:42 am
Location: Montpellier
Contact:

Switch 24 Spring - Webhook v8.2

Post 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.
germen@grafistore.nl
Newbie
Posts: 5
Joined: Fri Jan 19, 2018 11:17 am
Location: Almelo, The Netherlands
Contact:

Re: Switch 24 Spring - Webhook v8.2

Post 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.
sander
Advanced member
Posts: 308
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: Switch 24 Spring - Webhook v8.2

Post 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.
freddyp
Advanced member
Posts: 1129
Joined: Thu Feb 09, 2012 3:53 pm

Re: Switch 24 Spring - Webhook v8.2

Post by freddyp »

Engineering is not capable of reproducing the issue and there is the reaction from Sander. Can you confirm it is still there?
User avatar
FloBluewest
Newbie
Posts: 2
Joined: Wed May 22, 2024 8:42 am
Location: Montpellier
Contact:

Re: Switch 24 Spring - Webhook v8.2

Post 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 9818 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?
User avatar
vernonvd
Member
Posts: 45
Joined: Tue Oct 09, 2012 9:21 am
Location: Pretoria, South Africa

Re: Switch 24 Spring - Webhook v8.2

Post 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.
Post Reply