'dict' object has no attribute 'decode when validatign webhook #5119
-
Hi, I am trying to implement Webhook Validation but it is showing
when Polar webhook trigger and this is the program I am using (just the mentioned one)
In |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What Python web framework are you using? The error you show here means you pass a parsed version of the payload (i.e. already decoded as a dict). What |
Beta Was this translation helpful? Give feedback.
Yes, that's expected. If you serialise the payload again, you take the risk of not matching the original payload used to compute the signature.
That's why it's important to use the raw payload. With Django, you should access it through
request.body