ticky / museum-things

🤖 Twitter bot that posts things from Museum Victoria’s collections
https://twitter.com/museum_things
MIT License
2 stars 1 forks source link

Doesn’t retry any HTTP requests #1

Open ticky opened 7 years ago

ticky commented 7 years ago

If the Museums Victoria API fails for any reason, there just won’t be a tweet that time. Should try a few times if something fails!

mistydemeo commented 7 years ago

Do you know what codes it tends to fail with? Or is it not very predictable?

ticky commented 7 years ago

The last issue it encountered was a Net::ReadTimeout on museum_things.rb:61.

I suspect that’ll be the most common problem - empty query sets still return 200. Might also be worth adding a handler for 500s.