Skip to content

'dict' object has no attribute 'decode when validatign webhook #5119

Answered by frankie567
Yawan-1 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Yawan-1
Comment options

@frankie567
Comment options

Answer selected by Yawan-1
@Yawan-1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kit Developer kit: Language SDKs, starter kits, polar-init etc
2 participants
Converted from issue

This discussion was converted from issue #5118 on February 27, 2025 09:40.