Commit 1a5f62e2e7cc6f827229d1e883f4bdd7693ccaa0

  • Tree SHA1: 7921831
  • Parent SHA1: edd19b5 (Write tests for the hashtag identification code. Rewrite the hashtag identification regexp. Tweak slightly the URI identification regexp.)
  • raw diff | raw patch
Turn the proxy off because panacea was down. Add a note about twitter doing stupid things when it's down.
  
44require 'json'
55require 'rack/utils'
66
7RestClient.proxy = "http://localhost:8118"
7#RestClient.proxy = "http://localhost:8118"
88set :host, 'localhost'
99disable :logging
1010
211211 # by peer - SSL_connect
212212 # XXX: OpenSSL::SSL::SSLError - SSL_connect SYSCALL returned=5
213213 # errno=0 state=SSLv2/v3 read server hello A:
214
215 # sometimes, twitter generates
216 # x = JSON.parse('{"request":NULL,"error":"Twitter is down for maintenance. It will return in about an hour."}')
217 # which throws JSON::ParserError because NULL is different than null.
214218 rescue RestClient::Exception => e
215219 req_status[site]['msg'] = "#{site}: error: #{e.http_code}"
216220 req_status[site]['error'] = true