hubot-http-status icon indicating copy to clipboard operation
hubot-http-status copied to clipboard

HTTP Status Crashes Hubot

Open kkirsche opened this issue 9 years ago • 3 comments

When running hubot http status 401 I get the following error:

[Tue Oct 13 2015 10:22:57 GMT-0400 (EDT)] ERROR TypeError: Cannot read property 'parent' of null
  at exports.update (/Users/exampleuser/git/hubot/node_modules/hubot-http-status/node_modules/cheerio/lib/parse.js:64:25)
  at module.exports (/Users/exampleuser/git/hubot/node_modules/hubot-http-status/node_modules/cheerio/lib/parse.js:26:3)
  at Function.exports.load (/Users/exampleuser/git/hubot/node_modules/hubot-http-status/node_modules/cheerio/lib/static.js:19:14)
  at /Users/exampleuser/git/hubot/node_modules/hubot-http-status/src/http-status.coffee:25:11, <js>:12:21
  at ClientRequest.<anonymous> (/Users/exampleuser/git/hubot/node_modules/hubot/node_modules/scoped-http-client/src/index.js:99:20)
  at ClientRequest.emit (events.js:107:17)
  at TLSSocket.socketErrorListener (_http_client.js:271:9)
  at TLSSocket.emit (events.js:129:20)
  at net.js:459:14
  at process._tickCallback (node.js:355:11)

kkirsche avatar Oct 13 '15 14:10 kkirsche

I need more information to troubleshoot. I've verified that nothing has changed on the Wikipedia page so I'm not sure why cheerio wouldn't be able to find the id on the page.

What adapter are you using? and what version of Cheerio?

delianides avatar Oct 13 '15 17:10 delianides

Adapter: nandub/hubot-irc Cheerio: 0.16.0 is what is in node_modules/hubot-http-status/node_modules/cheerio

kkirsche avatar Oct 13 '15 17:10 kkirsche

Same here. Slack adapter. using https_proxy / http_proxy

davidkarlsen avatar Aug 31 '17 17:08 davidkarlsen