-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Users are getting a 400 error when retrieving student assessments:
'NoneType' object has no attribute 'user'
Investigate why we are getting this error and coordinate with project owner and team leads (ie instructors) on best solutions.
to recreate the error import these curl statements into your API client (postman, yaak, bruno, etc):
First get the auth token to use in subsequent requests with:
curl -X POST \ http://localhost:8000/login \ -H 'Content-Type: application/json' \ -d '{ "username": "YOUR_USERNAME", "password": "YOUR_PASSWORD" }'
Then try to create a student assessment:
curl -X POST \ http://localhost:8000/assessments \ -H 'Content-Type: application/json' \ -H 'Authorization: Token YOUR_ADMIN_AUTH_TOKEN' \ -d '{ "studentId": 1, "assessmentId": 1 }'
This should recreate the error. Investigate in views/student_assessment.py