Skip to content
Advertisement

python POST request giving ‘the payload is invalid’ message

Here is my code Why is it giving this error even though my payload is correct. Before this, i was not including ‘xsrf-token’ and it was giving ‘Page Expired’ as the response.

JavaScript

The response I am receiving.

JavaScript

Advertisement

Answer

you need to decode xsrf before pass it in headers

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement