Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coach - Error page after clicking the "Create a class and enroll learners" link #13087

Closed
pcenov opened this issue Feb 17, 2025 · 1 comment · Fixed by #13096
Closed

Coach - Error page after clicking the "Create a class and enroll learners" link #13087

pcenov opened this issue Feb 17, 2025 · 1 comment · Fixed by #13096
Assignees
Labels
APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) bug Behavior is wrong or broken DEV: frontend P0 - critical Priority: Release blocker or regression

Comments

@pcenov
Copy link
Member

pcenov commented Feb 17, 2025

Observed behavior

When I have 2 or more facilities without any created classes and I go to Coach > Class home ore any of the other pages and I click the "Create a class and enroll learners" link then I am seeing the "Sorry! Something went wrong!" error page and the following error:

{
  "data": [
    {
      "id": "INVALID_CHOICE",
      "metadata": {
        "field": "parent",
        "message": "Select a valid choice. That choice is not one of the available choices."
      }
    }
  ],
  "status": 400,
  "statusText": "Bad Request",
  "headers": {
    "allow": "GET, POST, HEAD, OPTIONS",
    "content-length": "139",
    "content-security-policy": "style-src 'self' data: blob: 'unsafe-inline'; frame-src 'self' data: blob: http: https:; script-src 'self'; default-src 'self' data: blob:",
    "content-type": "application/json",
    "date": "Mon, 17 Feb 2025 13:43:20 GMT",
    "referrer-policy": "same-origin",
    "server": "Cheroot/10.0.1",
    "vary": "Accept, Cookie",
    "x-content-type-options": "nosniff",
    "x-frame-options": "DENY"
  },
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "adapter": [
      "xhr",
      "http",
      "fetch"
    ],
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "kolibri_csrftoken",
    "xsrfHeaderName": "X-CSRFToken",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "X-Requested-With": "XMLHttpRequest"
    },
    "paramsSerializer": {},
    "url": "/api/auth/classroom/",
    "params": {
      "parent": "undefined"
    },
    "method": "get"
  },
  "request": {}
}
error.mp4

Expected behavior

It should be possible to create a class and add learners.

Steps to reproduce the issue

  1. Install the build from Fix missing "Create a class and enroll learners" #13084
  2. Observe the attached video.

Logs

logs.zip

Usage Details

Windows 11, Ubuntu 22 - Chrome, Firefox

@pcenov
Copy link
Member Author

pcenov commented Feb 17, 2025

@radinamatic

@radinamatic radinamatic added bug Behavior is wrong or broken P0 - critical Priority: Release blocker or regression APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Feb 17, 2025
@AlexVelezLl AlexVelezLl self-assigned this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) bug Behavior is wrong or broken DEV: frontend P0 - critical Priority: Release blocker or regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants