Skip to content

Error on loading #1

@p0358

Description

@p0358

The module gets a list of free games on load. This works fine if we load the module when Concierge is fully loaded, but results in error if it's loaded during startup with other modules.

Very likely to be core's issue, about some API not being ready to use yet.

2017-08-11T12:53:22.510Z - verbose: Requested URL: http://www.reddit.com/r/gamedeals/.json?limit=200
2017-08-11T12:53:22.593Z - debug: TypeError: Instance is not a constructor
    at Robot.load (/var/www/Concierge/core/modules/hubot/robot.js:389:75)
    at /var/www/Concierge/core/modules/modules.js:161:40
    at undefined.next (native)
    at step (/var/www/Concierge/core/modules/modules.js:1:260)
    at /var/www/Concierge/core/modules/modules.js:1:420

It was also giving this error earlier:

Cannot read property 'Symbol(Symbol.iterator)' of null

at line 40 of freedar.js.

It seems to work fine after it loads (I'll be sure once some free games appear 😄), and it periodically checks for games normally.

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