Twitter api - no more than 150 requests per hour....
Posted
by RenegadeAndy
on Stack Overflow
See other posts from Stack Overflow
or by RenegadeAndy
Published on 2010-06-03T17:48:24Z
Indexed on
2010/06/03
17:54 UTC
Read the original article
Hit count: 287
Hi.
I am writing a twitter app using jtwitter - and its running inside a server inside my work. Anyway - whenever i run it from work it returns the error below and I am only making a couple requests per hour:
HTTP/1.1 400 Bad Request {"request":"/1/statuses/user_timeline.json?count=6&id=cicsdemo&","error":"Rate limit exceeded. Clients may not make more than 150 requests per hour."} ] 2010-06-03 18:44:49 zero.timer.TimerTask::run Thread-3 SEVERE [ CWPZA3100E: Exception during processing for timer task, "twitterTimer". Exception: java.lang.ClassCastException: winterwell.jtwitter.Twitter$Status incompatible with java.lang.String ]
I run the same code from home - its fine.
So obviously at some point twitter thinks our work is all coming from one direct IP - which is why its hitting a limit which it shouldnt.
Do I have any choice or workaround - can i make the limit be counted from my direct machine IP - or to my account instead of IP? Can i use a proxy? Has any body else had this problem and solved it?!
Before anyone asks the APP must live inside my work - it cannot run anywhere else!
Cheers,
Andy
© Stack Overflow or respective owner