Skip to content

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

@Yawan-1

Description

@Yawan-1

Hi,

I am trying to implement Webhook Validation but it is showing

AttributeError: 'dict' object has no attribute 'decode

when Polar webhook trigger and this is the program I am using (just the mentioned one)

event = validate_event(
      body=request.data,
      headers=request.headers,
      secret=config("SECRET_KEY"),
)

In validate_event it was showing validate_event got unexpected argument payload so I found in the library and found it is using body as argument not payload but the new error occured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions