lehmannro / pyhkal2

IRC bot with bling bling
7 stars 2 forks source link

exception during socket teardown in twittytwister #30

Open lehmannro opened 14 years ago

lehmannro commented 14 years ago

As far as I can tell every single Twitter API call leads to this (non-fatal) error:

[-] Starting factory <HTTPDownloader: https://twitter.com/statuses/friends_timeline.xml?since_id=23254472964.0>
[HTTPPageDownloader,client] Error closing HTTPDownloader file
    Traceback (most recent call last):
      File "var/lib/python2.6/site-packages/twisted/internet/tcp.py", line 460, in doRead          
        return self.protocol.dataReceived(data)
      File "var/lib/python2.6/site-packages/twisted/protocols/basic.py", line 259, in dataReceived 
        return self.rawDataReceived(data)
      File "var/lib/python2.6/site-packages/twisted/web/http.py", line 537, in rawDataReceived     
        self.handleResponseEnd()
      File "var/lib/python2.6/site-packages/twisted/web/client.py", line 216, in handleResponseEnd 
        self.status, self.message, None)))
    --- <exception caught here> ---
      File "var/lib/python2.6/site-packages/twisted/web/client.py", line 440, in noPage
        self.file.close()
      File "var/lib/python2.6/site-packages/twittytwister/txml.py", line 263, in close
        self.connectionLost(error.ConnectionDone())
      File "var/lib/python2.6/site-packages/twisted/web/sux.py", line 198, in connectionLost       
        stateTable[self.state][END_HANDLER]()
    exceptions.KeyError: None
[HTTPPageDownloader,client] Stopping factory <HTTPDownloader: https://twitter.com/statuses/friends_timeline.xml?since_id=23254472964.0>

Note: since_id should be an integer too.