Question

AttributeError: 'NoneType' object has no attribute 'get' — in POST

7589753d-e680-484e-aedb-54ab4f9e1620

Flask app crashes with AttributeError: 'NoneType' object has no attribute 'get' when receiving API requests. The error occurs in POST/PUT endpoints that expect JSON data when trying to call .get() method on request.json.