oppia: core.controllers.base.UserFacingExceptions.NotFoundException
This error occurred recently in test server:
The error has occurred with 2 different stack traces, mentioned below
Exception raised at https://www.oppiatestserver.org/explorehandler/init/test_id:
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 252, in test_can_play
raise self.NotFoundException
core.controllers.base.UserFacingExceptions.NotFoundException
Exception raised at https://www.oppiatestserver.org/version_history_handler/metadata/id_1/id_2:
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 256, in test_can_play
return handler(self, exploration_id, **kwargs)
File "/workspace/core/controllers/reader.py", line 2706, in get
raise self.NotFoundException
core.controllers.base.UserFacingExceptions.NotFoundException
Where did the error occur? Occurred on https://www.oppiatestserver.org/explorehandler/init/test_id and https://www.oppiatestserver.org/version_history_handler/metadata/id_1/id_2.
Which release did the error occur in? release-3.3.8
Frequency of occurrence The first stack trace has occurred 27 times since yesterday(9 April) and the second one has occurred 6 times since yesterday(9 April).
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.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 26 (18 by maintainers)
I took a look and it seems like the exploration in question does not actually exist on the test server. Going to the /explore page for an invalid ID will result in the same errors. I think we should direct the user to a 404 page if the exploration does not exist / ID is invalid.
Also, I see the same errors on prod so it isn’t a regression.