Skip to content

Error thrown when client calls updateCurrentGistView the first time to create initial Gist #8

Closed
@LearningNerd

Description

@LearningNerd

This is the mystery bug that appeared seemingly out of nowhere! The app was working fine and then the next time I tested it, this bug (among others) appeared even though I never changed the code!

Description of bug:

  • This bug only occurs the first time that updateCurrentGistView runs -- in other words, when creating the initial Gist when starting up the game.

  • “Uncaught TypeError: Cannot read property ‘url’ of undefined” at line 527 of local.js

Ideas for debugging:

  • After refactoring, check the flowchart and state diagram to see if anything seems wrong with the order of events.

  • Test the Gist creation in isolation (both for debugging and to build up more modular sample code for myself to practice with and build off of later)

  • Check if the GitHub API has changed since my last commit!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions