Skip to content

The question with ID QUESTION_ID is already linked to skill SKILL_ID #19959

Open
@lkbhitesh07

Description

This error occurred recently in test server:

Traceback (most recent call last):
  File "/layers/google.python.pip/pip/lib/python3.8/site-packages/webapp2.py", line 604, in dispatch
    return method(*args, **kwargs)
  File "/workspace/core/controllers/acl_decorators.py", line 3624, in test_can_access_topics_and_skills_dashboard
    return handler(self, **kwargs)
  File "/workspace/core/controllers/topics_and_skills_dashboard.py", line 684, in post
    question_services.replace_skill_id_for_all_questions(
  File "/workspace/core/domain/question_services.py", line 500, in replace_skill_id_for_all_questions
    question_models.QuestionSkillLinkModel.create(
  File "/workspace/core/storage/question/gae_models.py", line 373, in create
    raise Exception(
Exception: The question with ID QUESTION_ID is already linked to skill SKILL_ID

Where did the error occur?

Frequency of occurrence Once since yesterday(14 March 2024).

Additional context Occured on branch version 3-3-7.

General instructions for contributors
In general, the procedure for fixing server errors should be the following:

  • Analyze the code in the file where the error occurred and come up with a hypothesis for the reason.
  • Based on your hypothesis, determine a list of steps that reliably reproduce the issue (or confirm any repro instructions that have been provided). For example, if your hypothesis is that the issue arises due to a delay in a response from the backend server, try to change the code so that the backend server always has a delay, and see if the error then shows up 100% of the time on your local machine.
  • Explain your proposed fix, the logic behind it, and any other findings/context you have on this thread. You can also link to a debugging doc if you prefer.
  • Get your approach validated by an Oppia team member.
  • Make a PR that fixes the issue.

Metadata

Assignees

No one assigned

    Labels

    Impact: MediumWill improve quality-of-life for at least 30% of users.Work: MediumThe means to find the solution is clear, but it isn't at good-first-issue level yet.bugLabel to indicate an issue is a regressionserver errors

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions