Replies: 1 comment 1 reply
-
Does it work if you pass the JSON to the action manually? It seems the action is not receiving the JSON payload, but instead gets NoneType. Also, I think you shouldn't need to be doing json.loads(payload), as the action specifies specifies the input to be object already. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm having trouble handling a JSON payload in a custom StackStorm action. The action is configured to receive a payload from PagerDuty, but it seems like the payload is not being parsed correctly.
Rule Definition:
Action YAML Definition:
Python Script:
Error Received:
TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType'
It seems like the payload is being received as None. I've verified that the PagerDuty webhook is sending the data correctly. If I manually force the action with the payload, the action parses it correctly, so the issue must be with how the rule and the action send the payload to the Python script.
Any ideas why this might be happening or what I might be doing wrong?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions