hubot-scripts icon indicating copy to clipboard operation
hubot-scripts copied to clipboard

meme_generator.coffee crashes: SyntaxError: Unexpected token ILLEGAL

Open timeinfeldt opened this issue 15 years ago • 6 comments

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. (/app/node_modules/hubot/node_modules/scoped-http-client/lib/index.js:60:20) 2011-11-11T12:29:00+00:00 app[app.1]: at IncomingMessage.emit (events.js:81:20) 2011-11-11T12:29:00+00:00 app[app.1]: at HTTPParser.onMessageComplete (http.js:133:23) 2011-11-11T12:29:00+00:00 app[app.1]: at Socket.ondata (http.js:1213:22) 2011-11-11T12:29:00+00:00 app[app.1]: at Socket._onReadable (net.js:681:27) 2011-11-11T12:29:00+00:00 app[app.1]: at IOWatcher.onReadable as callback 2011-11-11T12:29:01+00:00 heroku[app.1]: Process exited 2011-11-11T12:29:02+00:00 heroku[app.1]: State changed from up to crashed

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?

timeinfeldt avatar Nov 11 '11 12:11 timeinfeldt

There is an issue with the MemeGenerator API at the minute.

tombell avatar Nov 11 '11 12:11 tombell

Good to know! I assumed it was something like that, thanks for the info.

timeinfeldt avatar Nov 11 '11 12:11 timeinfeldt

Yeah I looked into it, because the meme_generator.coffee happens to be my managers favourite scripts at work for our bot. :)

tombell avatar Nov 11 '11 13:11 tombell

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.

sleekslush avatar Nov 11 '11 22:11 sleekslush

If something fancies updating it with a try/catch :)

tombell avatar Nov 11 '11 23:11 tombell

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.

tombell avatar Nov 12 '11 14:11 tombell