Kolibri: Learner gets 500 server error when the class has a visible lesson

Created on 29 Nov 2019  Â·  4Comments  Â·  Source: learningequality/kolibri

Observed behavior

No problem when the class has an opened/started quiz, but as soon as a lesson is made visible, learner gets the 500 error (_Something went wrong_) on Learn > Classes page:

learner-cant-see-classes

Seems there is also some weird learner logout there in the middle, as id: "NOT_AUTHENTICATED", metadata: {view: "Learner Classroom Viewset List" is visible in the request preview.

As soon as the lesson is made invisible again, and the learner signs in again, they can see the Learn > Classes page no prob:

learner-cant-see-classes-with-lessons

Expected behavior

No errors and working lesson.

User-facing consequences

Inability to access their class and the assigned resources.

Errors and logs

(see screencast)

Steps to reproduce

Sign in as a learner when your class has a started lesson.

Context

• Kolibri version: kolibri_0.13.0b3-0ubuntu1
• Operating system: Ubuntu 16.04
• Browser: Firefox & Chrome

P0 - critical bug

Most helpful comment

May get resolved in next beta release by https://github.com/learningequality/kolibri/pull/6159

All 4 comments

Same error on Android devices version 4.4 and 6.0
Screenshot_20191129-154242

### error details

{
  "request": {
    "path": "/learn/api/learnerclassroom/",
    "params": {
      "1575013340098": 1575013340098
    },
    "headers": {
      "Content-Type": "application/json",
      "Accept": "application/json, application/json;q=0.8, text/plain;q=0.5, */*;q=0.2",
      "X-CSRFToken": "S0iy9P1qj6GS5pyHLuFu31tK3yHFvGadeMRpjxi2084hiaU8MP8m2zK0OM7mhg2h"
    },
    "method": "GET",
    "canceled": false
  },
  "url": "/learn/api/learnerclassroom/?1575013340098=1575013340098",
  "raw": {},
  "status": {
    "code": 500,
    "text": "Internal Server Error"
  },
  "headers": {
    "Date": "Fri, 29 Nov 2019 07:42:21 GMT",
    "Vary": "Cookie",
    "Server": "0.0.0.0",
    "Content-Length": "27",
    "X-Frame-Options": "SAMEORIGIN",
    "Content-Type": "text/html"
  },
  "entity": "<h1>Server Error (500)</h1>"
}

I also reproduced this on Windows 7 server and Android 4 client.

May get resolved in next beta release by https://github.com/learningequality/kolibri/pull/6159

Should be fixed in #6159 - please reopen if not.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

radinamatic picture radinamatic  Â·  5Comments

indirectlylit picture indirectlylit  Â·  5Comments

indirectlylit picture indirectlylit  Â·  4Comments

kollivier picture kollivier  Â·  4Comments

ivanistheone picture ivanistheone  Â·  3Comments