oppia / oppia

A free, online learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
5.62k stars 3.78k forks source link

InvalidInputException: This state does not have any interaction specified. #20224

Open kevintab95 opened 2 weeks ago

kevintab95 commented 2 weeks ago

This error occurred recently in production:

Traceback (most recent call last):
  File "/workspace/core/controllers/editor.py", line 581, in _publish_exploration
    exploration.validate(strict=True)
  File "/workspace/core/domain/exp_domain.py", line 1682, in validate
    state.validate(
  File "/workspace/core/domain/state_domain.py", line 3738, in validate
    raise utils.ValidationError(
core.utils.ValidationError: This state does not have any interaction specified.

During handling of the above exception, another exception occurred:

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 2361, in test_can_publish
    return handler(self, exploration_id, *args, **kwargs)
  File "/workspace/core/controllers/editor.py", line 600, in put
    self._publish_exploration(exploration_id)
  File "/workspace/core/controllers/editor.py", line 583, in _publish_exploration
    raise self.InvalidInputException(e)
core.controllers.base.UserFacingExceptions.InvalidInputException: This state does not have any interaction specified.

Where did the error occur? Add the page the error occurred on. /createhandler/status/XXX

Which release did the error occur in? Add the Oppia release version associated with the error. 3.3.7

Frequency of occurrence Add details about how many times the error occurred within a given time period (e.g. the last week, the last 30 days, etc.). This helps issue triagers establish severity. 2 times in 24 days.

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