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

core.controllers.base.UserFacingExceptions.InvalidInputException Expected a valid topic id to be provided #20299

Open
lkbhitesh07 opened this issue May 12, 2024 · 1 comment
Labels
bug Label to indicate an issue is a regression server errors

Comments

@lkbhitesh07
Copy link
Member

lkbhitesh07 commented May 12, 2024

This error occurred recently in test server:

Exception raised at https://www.oppiatestserver.org/rightshandler/get_topic_rights/ID: Expected a valid topic id to be provided.
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 3680, in test_can_view_any_topic_editor
    return handler(self, topic_id, **kwargs)
  File "/workspace/core/controllers/topic_editor.py", line 670, in get
    raise self.InvalidInputException(
core.controllers.base.UserFacingExceptions.InvalidInputException: Expected a valid topic id to be provided.

Where did the error occur? https://www.oppiatestserver.org/rightshandler/get_topic_rights/ID

Which release did the error occur in? 3-3-9

Frequency of occurrence Twice in the last 3 days(9 May).

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.
@lkbhitesh07 lkbhitesh07 added triage needed server errors bug Label to indicate an issue is a regression labels May 12, 2024
@lkbhitesh07
Copy link
Member Author

I have noticed that this issue and #20298 occurred for the same ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Label to indicate an issue is a regression server errors
Projects
Status: Todo
Development

No branches or pull requests

2 participants