I have been debugging an error with a Function to handle webhooks.
I verify the expected payload of the webhooks with key/signatures.
DigitalOcean is writing their own information into the payload (e.g. __ow_headers, __ow_path, __ow_method).
Although this information is useful, as they are manipulating the payload any verification that I do will fail.
My preferred option is to just access the raw payload which was sent by the originator. Does anyone know how to do this in Python using DigitalOcean Functions?
My backup is to strip out the information I need, however if DigitalOcean or my originator change the payload then the code will break, for this reason it is not preferred.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.