API POST error
Hey , so im making a web app and I need to pull data from a POST request . I get an error 500 on that request telling me (AttributeError : 'str ' object has no attribute 'get ' ) It is caused (I think ) because the backend receives the JSON message sent via the POST request as a string instead of a JSON object . This is the body payload : { "question " : "Wat is het wereldnieuws van vandaag ? " } When I do a cURL api request in Postman everything works fine . What could it be ? Build it as an object if you need to be JSON You choose the type of data you want to send