Comment 4 for bug 600058

Revision history for this message
Miroslav Zadravec (miro-miroz) wrote :

I had the same error so I did some debugging:

In file "microblog/twitter.py", function "_get(...)", after line 130 "data = network.Download(...)" I've inserted this code:
"print "Data: ", data"
This returned:
Data: {u'errors': [{u'message': u'This account is locked due to too many failed login attempts -- try again in 2216 seconds', u'code': 27}]}

Now I finally see what is the problem (although I'm not sure who generated too many login attempts). Anyway, next line checks for errors but it doesn't catch it:
"if isinstance(data, dict) and data.get("error", 0):"
It won't catch this because key "error" doesn't exist in "data", it's "errors" in my case. "errors" contains list of messages and such case is not handled at all. That's why there is only noise in log.