You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Are you sure the error shown origionates from freedar and not just some other module which happens to be being loaded at the same time. Although the core is now async the loading does queue which can make it look sync so the error would probably occur at the same time on each load.
Instance is not a constructor is a core issue which has appeared recently - not sure what the problem is there but it shouldn't be freedar related (because the error origionates in hubot module code not kassy module code). I've seen it with a few other modules too, unfortunately Real Life™ means I haven't had an oppertunity to find the cause.
The other issue, Cannot read property 'Symbol(Symbol.iterator)' of null will come from here. An exception was thrown and so no data was returned from reddit. Most likely causes are internet connection problems (connectivity, dns) or reddit server maintainence which happens from time to time.
As for if it works, we have tested it and it does return useful data :). It has very strict filtering rules because of the number of false positives (such as "Free Shipping" or "Free with purchase of") which we didn't want. A better way of doing this would be to monitor isthereanydeal.com using the api but this seemed easier at the time.
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.
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.
The text was updated successfully, but these errors were encountered: