Skip to content

Bug in student assessment retrieval #13

@Raparker88

Description

@Raparker88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions