question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Something went wrong with the exploration: no interactionRulesService was available.

See original GitHub issue

Describe the bug Error message: Something went wrong with the exploration: no interactionRulesService was available.

To Reproduce Steps to reproduce the behavior:

  1. This happened when loading https://oppiatestserver.appspot.com/create/gjmhePCB3jbx#/feedback

Observed behavior Error message

Expected behavior No error

Screenshots

Screen Shot 2021-02-11 at 21 10 35

Screen Shot 2021-02-11 at 21 13 11

Desktop (please complete the following information; delete this section if the issue does not arise on desktop):

  • OS: macOS
  • Browser: Firefox
  • Browser-version: 85

Additional context Console logs:

21:10:18.044 This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. gjmhePCB3jbx
21:10:19.953
Some cookies are misusing the recommended “SameSite“ attribute 2
21:10:20.545 Retrieved exploration data. logger.service.ts:42:12
21:10:20.545 {"username":"cstest","param_changes":[],"exploration_is_linked_to_story":true,"exploration_id":"gjmhePCB3jbx","param_specs":{},"is_super_admin":false,"is_moderator":true,"is_admin":true,"email_preferences":{"mute_feedback_notifications":false,"mute_suggestion_notifications":false},"language_code":"en","draft_changes":null,"is_version_of_draft_valid":null,"category":"Statistics","states":{"Introduction":{"content":{"content_id":"content","html":"<p>Hi</p>"},"param_changes":[],"interaction":{"solution":null,"answer_groups":[{"tagged_skill_misconception_id":null,"outcome":{"param_changes":[],"feedback":{"content_id":"feedback_1","html":"<p>good job</p>"},"dest":"a","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"training_data":[],"rule_specs":[{"rule_type":"Equals","inputs":{"x":0}}]}],"default_outcome":{"param_changes":[],"feedback":{"content_id":"default_outcome","html":"<p>bad</p>"},"dest":"Introduction","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"customization_args":{"showChoicesInShuffledOrder":{"value":false},"choices":{"value":[{"content_id":"ca_choices_2","html":"<p>pass</p>"},{"content_id":"ca_choices_3","html":"<p>fail</p>"}]}},"confirmed_unclassified_answers":[],"id":"MultipleChoiceInput","hints":[{"hint_content":{"content_id":"hint_1","html":"<p>try pass</p>"}}]},"written_translations":{"translations_mapping":{"content":{"ak":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"feedback_1":{"ak":{"needs_update":false,"translation":"<p>ha</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"hint_1":{"ak":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"default_outcome":{"ak":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"ca_choices_2":{},"ca_choices_3":{}}},"recorded_voiceovers":{"voiceovers_mapping":{"content":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ar-ttls2k6f8a.mp3"}},"feedback_1":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"feedback_1-ar-j9hua9h2bc.mp3"}},"hint_1":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"hint_1-ar-jhzj12b1x9.mp3"}},"default_outcome":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"default_outcome-ar-o7o2xdj1sa.mp3"}},"ca_choices_2":{},"ca_choices_3":{}}},"classifier_model_id":null,"next_content_id_index":4,"solicit_answer_details":false},"a":{"content":{"content_id":"content","html":"<p>hi</p>"},"param_changes":[],"interaction":{"solution":{"correct_answer":[1,1],"explanation":{"content_id":"solution","html":"<p>cause</p>"},"answer_is_exclusive":true},"answer_groups":[{"tagged_skill_misconception_id":null,"outcome":{"param_changes":[],"feedback":{"content_id":"feedback_5","html":"<p>yay!</p>"},"dest":"b","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"training_data":[],"rule_specs":[{"rule_type":"IsEquivalent","inputs":{"x":[1,1]}}]}],"default_outcome":{"param_changes":[],"feedback":{"content_id":"default_outcome","html":"<p>bad</p>"},"dest":"a","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"customization_args":{"numberOfTerms":{"value":2},"placeholder":{"value":{"unicode_str":"Type 1:1","content_id":"ca_placeholder_4"}}},"confirmed_unclassified_answers":[],"id":"RatioExpressionInput","hints":[{"hint_content":{"content_id":"hint_6","html":"<p>Try 1:1</p>"}}]},"written_translations":{"translations_mapping":{"solution":{},"content":{"ak":{"needs_update":true,"translation":"<p>h</p>","data_format":"html"},"ar":{"needs_update":true,"translation":"<p>as</p>","data_format":"html"}},"hint_6":{},"feedback_5":{},"default_outcome":{"ak":{"needs_update":false,"translation":"<p>s</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"ca_placeholder_4":{}}},"recorded_voiceovers":{"voiceovers_mapping":{"solution":{},"content":{"ak":{"file_size_bytes":261928,"duration_secs":0,"needs_update":true,"filename":"content-ak-ty484jalok.mp3"},"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":true,"filename":"content-ar-gubm3npnda.mp3"}},"hint_6":{},"feedback_5":{},"default_outcome":{"ak":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"default_outcome-ak-0vlrfit3en.mp3"},"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"default_outcome-ar-rlkp5biti3.mp3"}},"ca_placeholder_4":{}}},"classifier_model_id":null,"next_content_id_index":7,"solicit_answer_details":false},"b":{"content":{"content_id":"content","html":"<p>Congratulations, you have finished! Great job!</p>"},"param_changes":[],"interaction":{"solution":null,"answer_groups":[],"default_outcome":null,"customization_args":{"recommendedExplorationIds":{"value":[]}},"confirmed_unclassified_answers":[],"id":"EndExploration","hints":[]},"written_translations":{"translations_mapping":{"content":{"ak":{"needs_update":false,"translation":"<p>done</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}}}},"recorded_voiceovers":{"voiceovers_mapping":{"content":{"ak":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ak-ji88ba0bni.mp3"},"ro":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ro-1xqqrr66vl.mp3"},"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ar-9b8lyc832l.mp3"}}}},"classifier_model_id":null,"next_content_id_index":0,"solicit_answer_details":false}},"auto_tts_enabled":true,"rights":{"status":"public","community_owned":false,"owner_names":["cstest"],"viewable_if_private":false,"viewer_names":[],"editor_names":[],"cloned_from":null,"voice_artist_names":["cs"]},"tags":[],"draft_change_list_id":74,"init_state_name":"Introduction","is_topic_manager":false,"version":18,"show_state_translation_tutorial_on_load":false,"objective":"lkjasdfjalsdfaljjalkj","title":"Uses RatioInput Interaction","show_state_editor_tutorial_on_load":false,"user_email":"cskalnik@stanford.edu","correctness_feedback_enabled":false} logger.service.ts:42:12
21:10:20.548 Retrieved exploration data. logger.service.ts:42:12
21:10:20.548 {"username":"cstest","param_changes":[],"exploration_is_linked_to_story":true,"exploration_id":"gjmhePCB3jbx","param_specs":{},"is_super_admin":false,"is_moderator":true,"is_admin":true,"email_preferences":{"mute_feedback_notifications":false,"mute_suggestion_notifications":false},"language_code":"en","draft_changes":null,"is_version_of_draft_valid":null,"category":"Statistics","states":{"Introduction":{"content":{"content_id":"content","html":"<p>Hi</p>"},"param_changes":[],"interaction":{"solution":null,"answer_groups":[{"tagged_skill_misconception_id":null,"outcome":{"param_changes":[],"feedback":{"content_id":"feedback_1","html":"<p>good job</p>"},"dest":"a","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"training_data":[],"rule_specs":[{"rule_type":"Equals","inputs":{"x":0}}]}],"default_outcome":{"param_changes":[],"feedback":{"content_id":"default_outcome","html":"<p>bad</p>"},"dest":"Introduction","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"customization_args":{"showChoicesInShuffledOrder":{"value":false},"choices":{"value":[{"content_id":"ca_choices_2","html":"<p>pass</p>"},{"content_id":"ca_choices_3","html":"<p>fail</p>"}]}},"confirmed_unclassified_answers":[],"id":"MultipleChoiceInput","hints":[{"hint_content":{"content_id":"hint_1","html":"<p>try pass</p>"}}]},"written_translations":{"translations_mapping":{"content":{"ak":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"feedback_1":{"ak":{"needs_update":false,"translation":"<p>ha</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"hint_1":{"ak":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"default_outcome":{"ak":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"ca_choices_2":{},"ca_choices_3":{}}},"recorded_voiceovers":{"voiceovers_mapping":{"content":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ar-ttls2k6f8a.mp3"}},"feedback_1":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"feedback_1-ar-j9hua9h2bc.mp3"}},"hint_1":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"hint_1-ar-jhzj12b1x9.mp3"}},"default_outcome":{"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"default_outcome-ar-o7o2xdj1sa.mp3"}},"ca_choices_2":{},"ca_choices_3":{}}},"classifier_model_id":null,"next_content_id_index":4,"solicit_answer_details":false},"a":{"content":{"content_id":"content","html":"<p>hi</p>"},"param_changes":[],"interaction":{"solution":{"correct_answer":[1,1],"explanation":{"content_id":"solution","html":"<p>cause</p>"},"answer_is_exclusive":true},"answer_groups":[{"tagged_skill_misconception_id":null,"outcome":{"param_changes":[],"feedback":{"content_id":"feedback_5","html":"<p>yay!</p>"},"dest":"b","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"training_data":[],"rule_specs":[{"rule_type":"IsEquivalent","inputs":{"x":[1,1]}}]}],"default_outcome":{"param_changes":[],"feedback":{"content_id":"default_outcome","html":"<p>bad</p>"},"dest":"a","refresher_exploration_id":null,"missing_prerequisite_skill_id":null,"labelled_as_correct":false},"customization_args":{"numberOfTerms":{"value":2},"placeholder":{"value":{"unicode_str":"Type 1:1","content_id":"ca_placeholder_4"}}},"confirmed_unclassified_answers":[],"id":"RatioExpressionInput","hints":[{"hint_content":{"content_id":"hint_6","html":"<p>Try 1:1</p>"}}]},"written_translations":{"translations_mapping":{"solution":{},"content":{"ak":{"needs_update":true,"translation":"<p>h</p>","data_format":"html"},"ar":{"needs_update":true,"translation":"<p>as</p>","data_format":"html"}},"hint_6":{},"feedback_5":{},"default_outcome":{"ak":{"needs_update":false,"translation":"<p>s</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}},"ca_placeholder_4":{}}},"recorded_voiceovers":{"voiceovers_mapping":{"solution":{},"content":{"ak":{"file_size_bytes":261928,"duration_secs":0,"needs_update":true,"filename":"content-ak-ty484jalok.mp3"},"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":true,"filename":"content-ar-gubm3npnda.mp3"}},"hint_6":{},"feedback_5":{},"default_outcome":{"ak":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"default_outcome-ak-0vlrfit3en.mp3"},"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"default_outcome-ar-rlkp5biti3.mp3"}},"ca_placeholder_4":{}}},"classifier_model_id":null,"next_content_id_index":7,"solicit_answer_details":false},"b":{"content":{"content_id":"content","html":"<p>Congratulations, you have finished! Great job!</p>"},"param_changes":[],"interaction":{"solution":null,"answer_groups":[],"default_outcome":null,"customization_args":{"recommendedExplorationIds":{"value":[]}},"confirmed_unclassified_answers":[],"id":"EndExploration","hints":[]},"written_translations":{"translations_mapping":{"content":{"ak":{"needs_update":false,"translation":"<p>done</p>","data_format":"html"},"ar":{"needs_update":false,"translation":"<p>as</p>","data_format":"html"}}}},"recorded_voiceovers":{"voiceovers_mapping":{"content":{"ak":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ak-ji88ba0bni.mp3"},"ro":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ro-1xqqrr66vl.mp3"},"ar":{"file_size_bytes":261928,"duration_secs":0,"needs_update":false,"filename":"content-ar-9b8lyc832l.mp3"}}}},"classifier_model_id":null,"next_content_id_index":0,"solicit_answer_details":false}},"auto_tts_enabled":true,"rights":{"status":"public","community_owned":false,"owner_names":["cstest"],"viewable_if_private":false,"viewer_names":[],"editor_names":[],"cloned_from":null,"voice_artist_names":["cs"]},"tags":[],"draft_change_list_id":74,"init_state_name":"Introduction","is_topic_manager":false,"version":18,"show_state_translation_tutorial_on_load":false,"objective":"lkjasdfjalsdfaljjalkj","title":"Uses RatioInput Interaction","show_state_editor_tutorial_on_load":false,"user_email":"cskalnik@stanford.edu","correctness_feedback_enabled":false} logger.service.ts:42:12
21:10:20.559 Found exploration data in cache. logger.service.ts:42:12
21:10:21.124
Something went wrong with the exploration: no interactionRulesService was available. logger.service.ts:58:12
21:10:21.130
Error: No interactionRulesService was available to classify the answer.
    getMatchingClassificationResult answer-classification.service.ts:130
    isClassifiedExplicitlyOrGoesToNewState answer-classification.service.ts:189
    refreshAddressedInfo state-top-answers-stats.service.ts:156
    refreshAddressedInfo state-top-answers-stats.service.ts:155
    initAsync state-top-answers-stats.service.ts:79
    a exploration_editor.7b06cc21b79ac7c7599a.bundle.js:10
    invoke zone.js:386
    run zone.js:143
    C zone.js:891
    invokeTask zone.js:421
    runTask zone.js:188
    y zone.js:601
    invokeTask zone.js:507
    p zone.js:1671
    d zone.js:1708
angular.js:15697:15
21:10:28.088 The resource at “https://oppiatestserver.appspot.com/third_party/generated/webfonts/fa-solid-900.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. gjmhePCB3jbx
21:10:28.088 The resource at “https://oppiatestserver.appspot.com/third_party/generated/webfonts/fa-brands-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
EricZLoucommented, Feb 22, 2021

@U8NWXD @vojtechjelinek – After a lot of digging, I found a small bug: we never added RatioExpressionInputRulesService to UpgradedServices.ts. I’m still not sure why the original bug report isn’t reproducible (and only happens in this specific exploration), and I’m not sure if my PR will fix this bug report, but either way:

BEFORE: In the rulesServiceRegistry map within InteractionRulesRegistryService, we incorrectly have this on load (according to console.log):

this.ratioExpressionInputRulesService = undefined

AFTER: After adding the service to UpgradedServices.ts, we correctly have this (according to console.log):

this.ratioExpressionInputRulesService = RatioExpressionInputRulesService {}

What do you all think? Putting up a PR now.

1reaction
EricZLoucommented, Feb 24, 2021

Thanks @U8NWXD

I’ll re-open this issue and close it if:

  • #12009 manages to fix the original bug and we figure out why it fixed the bug
  • #12009 does not fix the original bug (so we maybe revert it) but then later find a real fix
Read more comments on GitHub >

github_iconTop Results From Across the Web

https://googlegroups.com/group/oppia-dev-workflow-...
... Executed 2196 of 3367 SUCCESS (0 secs / 27.034 secs) ERROR: 'Something went wrong with the exploration: no interactionRulesService was available.
Read more >
Information and Knowledge Management in Complex Systems
IFIP is a non-profitmaking organization, run almost solely by 2500 volunteers. ... We assume that a syntactic analysis of the input sentences is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found