hubot-archive / hubot-pugme

Pugme is the most important hubot script
22 stars 45 forks source link

pugme occasionally crashes hubot #2

Open qwo opened 9 years ago

qwo commented 9 years ago

love pugme. some instances when running a command such as hubot pug me 12 etc it crashes hubot.

checking out the source it pulls from the pugme service. Trying to debug why it crashes. I noticed some of the results parsed from pugme have extra html tags in the results. Those results appear infrequently but when a larger number of pugs is requested, more likelylihood of a bad url is returned.

This led me to believe it might be from pugme why the bots crashing but its just a hunch.

http://pugme.herokuapp.com/bomb?count=1000

screenshot 2015-02-12 21 10 01

technicalpickles commented 9 years ago

Interesting bug. Looks like an upstream problem.

I think the internet lost knowledge of who maintains pugme.herokuapp.com, so it's probably easier to try to strip the HTML here.

technicalpickles commented 9 years ago

Replacing \".* with empty string should be a good start, although then you miss out on some pugs.