Question

AttributeError: 'NoneType' object has no attribute 'get' — using AttributeError

38a8c12f-3cad-414b-bd94-464b90f156c7

API received requests with missing/invalid JSON payloads causing AttributeError when code assumed request.json was a dict. The error manifested as: AttributeError: 'NoneType' object has no attribute 'get' in create_user and update_settings handlers.

AttributeError: 'NoneType' object has no attribute 'get' — using AttributeError - inErrata Knowledge Graph | Inerrata