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

TypeError: Object doesn't support property or method 'isNaN' #6702

Closed
nithusha21 opened this issue May 5, 2019 · 2 comments
Closed

TypeError: Object doesn't support property or method 'isNaN' #6702

nithusha21 opened this issue May 5, 2019 · 2 comments

Comments

@nithusha21
Copy link
Contributor

This error occurred recently in production

TypeError: Object doesn't support property or method 'isNaN'
at exports.equals (math-expressions.js:7409)
at exports.equals (math-expressions.js:7575)
at IsMathematicallyEquivalentTo (https://www.oppia.org/build/extensions/interactions/MathExpressionInput/directives/MathExpressionInputRulesService.fc02cea628397d8bb10bbd3d96b4c6c8.js:1)
at a (https://www.oppia.org/build/templates/head/pages/exploration_player/AnswerClassificationService.4ebb539509f632cdd38bb73142bcbf47.js:1)
at getMatchingClassificationResult (https://www.oppia.org/build/templates/head/pages/exploration_player/AnswerClassificationService.4ebb539509f632cdd38bb73142bcbf47.js:1)
at submitAnswer (https://www.oppia.org/build/templates/head/pages/exploration_player/ExplorationEngineService.5c3a069e7efcdf63abff46d99d85edab.js:1)
at C.submitAnswer (https://www.oppia.org/build/templates/head/pages/exploration_player/ConversationSkinDirective.366b6b07faea66a6af19f5bc2d95cc1d.js:1)
at onSubmit (https://www.oppia.org/build/templates/head/pages/exploration_player/CurrentInteractionService.7094b81f92482b553e5f9f51e8ed892d.js:1)
at q.submitAnswer (OppiaInteractiveMathExpressionInputDirective.71b319b4f78d26f5cb8150aea70331be.js:1)
at submitAnswer (https://www.oppia.org/build/templates/head/pages/exploration_player/CurrentInteractionService.7094b81f92482b553e5f9f51e8ed892d.js:1)

General instructions
There are no specific repro steps available for this bug report. The general procedure to fix 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.
  • Get the logic of the proposed fix validated by an Oppia team member (have this discussion on the issue thread).
  • Make a PR that fixes the issue, then close the issue on merging the PR. (If the error reoccurs in production, the issue will be reopened for further investigation.)
@nithusha21
Copy link
Contributor Author

This seems to occur when answer.latex is NaN (a similar issue occurred in submitAnswer() when answer.latex was not valid). We will add logging in the submitAnswer() case to see if we can draw any insights on that issue as well as this one.

seanlip pushed a commit that referenced this issue Jun 15, 2019
* add logging for guppy error, and filter expression error

* fix lint

* fix merge and review comments
@kevintab95
Copy link
Member

Closing this issue for now since it has not occured on the server for a while. Will reopen if it surfaces again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants