Skip to content

Error when trying to spectate a game in Wakka Maul #4614

Open

Description

@Imperadeiro98

When I try to spectate a game played in the Wakka Maul level for one of my test classes (it has 1 student and no code submitted for this level), the view never finishes loading and an error appears in the console. You can see this behavior by going to this test URL: https://codecombat.com/play/spectate/wakka-maul?league=testLeague.

Console error:

  • Uncaught TypeError: Cannot read property '_id' of null
    at SpectateView.coffee:69
    at Object.complete (SpectateView.coffee:306)
    at fire (jquery.js:3099)
    at Object.fireWith (jquery.js:3211)
    at done (jquery.js:8279)
    at XMLHttpRequest. (jquery.js:8605)

Note: I know it makes sense that it doesn't work (because there are no matches to be shown), but it should, at least, fail more gracefully.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions