Skip to content Skip to sidebar Skip to footer

Attributeerror: 'request' Object Has No Attribute 'get'

When i make a POST request to my server, i get a 500 ERROR with comment: AttributeError: 'Request' object has no attribute 'get' This is my server: @app.route('/api/entries', met

Solution 1:

Just as i posted this question, i found the answer:

I needed to change

'Title': request.get('Title', ""),

to

'Title': request.json.get('Title', ""), 

Post a Comment for "Attributeerror: 'request' Object Has No Attribute 'get'"