meme_generator.coffee crashes: SyntaxError: Unexpected token ILLEGAL
Heroku log:
2011-11-11T12:29:00+00:00 app[app.1]: undefined:1
2011-11-11T12:29:00+00:00 app[app.1]: ://www.w3.org/TR
2011-11-11T12:29:00+00:00 app[app.1]: ^^
2011-11-11T12:29:00+00:00 app[app.1]: SyntaxError: Unexpected token ILLEGAL
2011-11-11T12:29:00+00:00 app[app.1]: at Object.parse (native)
2011-11-11T12:29:00+00:00 app[app.1]: at /app/node_modules/hubot-scripts/src/scripts/meme_generator.coffee:66:21
2011-11-11T12:29:00+00:00 app[app.1]: at IncomingMessage.
hubot-scripts.json
["redis-brain.coffee", "tweet.coffee", "shipit.coffee", "meme_generator.coffee"]
package.json
{ "name": "hosted-hubot", "version": "0.1.0", "author": "GitHub Inc.", "keywords": "github hubot campfire bot", "description": "A simple helpful Robot for your Company", "licenses": [{ "type": "MIT", "url": "http://github.com/github/hubot/raw/master/LICENSE" }],
"repository" : { "type" : "git", "url" : "http://github.com/github/hubot.git" },
"dependencies": { "hubot": "1.1.11", "hubot-scripts": "1.1.7", "optparse": "1.0.3", "xml2js": ">= 0.1.11" } }
MEMEGENERATOR, Y U NO WORK?
There is an issue with the MemeGenerator API at the minute.
Good to know! I assumed it was something like that, thanks for the info.
Yeah I looked into it, because the meme_generator.coffee happens to be my managers favourite scripts at work for our bot. :)
Same here... wouldn't it be better if a single script didn't make the bot explode though? Maybe I'll fix that when I get a chance.
If something fancies updating it with a try/catch :)
Going to close this as it's a MemeGenerator issue, it'll be back up when it's up, for now it's best not loading the meme_generator.coffee script. If any one wants to send a pull request for better error handling I'll merge it in.