Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Incorrect algorithm used (check your providers documentation to verify what algorithm they encrypt with).
  • The Provider is encrypting more than just the payload. For example, Slack encrypts the payload, timestamp and other fields into the HMAC string.

What is the purpose of the LOG.setMessage function?

Often times your Webhook Function may result in any number of different outcomes. Rather than having to go into a request and look at the logs you can use the setMessage function to set the 'message' column on the message table. Below is an example where using the setMessage function can be helpful:

Image Added

The function running forĀ Bitbucket on bitbucket/push receives all push events on all branches. We only care about pushes to certain branches so when we receive an insignificant push event we can set the message accordingly.


Info
titleErrors

If you use LOG.setMessage in your function and the function later errors, the error message will take priority and override your message from the setMessage function.