-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Problems to handover a none json string #702
Comments
To be more clear: Here is the relevant part of hook.json:
In that case I receive:
As written above, I think the json format that is passed does not fit. I would therefore like to read in the data as a string and then take care of the further processing myself. |
should give you the complete text as one argument. You'll still get the "error parsing JSON payload" message in the log but that's only happening because the sender that is calling your webhook is sending it with a |
You can use the |
Hello,
I have to handly a webhook from a network system where the content is not json like. Here a example:
date=2024-10-12 time=23:52:08 devid="FGVMEV-CTZXP2_8F" devname="FGVMEV-CTZXP2_8F" eventtime=1728769927878132716 tz="+0200" logid="0100026001" type="event" subtype="system" level="information" vd="root" logdesc="DHCP Ack log" interface="port2" dhcp_msg="Ack" mac="00:XC:29:F4:XX:XX" ip=10.98.0.2 lease=300 hostname="CL" msg="DHCP server sends a DHCPACK"
As far as I see the content is not well json formated.
My question how can I tell webhook to do NOT parse the content as json and handover the string (content) to my python program?
Regards
Stephan
The text was updated successfully, but these errors were encountered: