New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error message when we hit Twitter's ratelimit #33

Open
ghost opened this Issue Jul 2, 2013 · 3 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jul 2, 2013

It looks like from this I hit some sort of rate limit.

It also spat out PHP errors

screen_name=edanhewitt&count=200&page=1&include_rts=1&trim_user=0
HTTP/1.1 429 Too Many Requests
content-length: 56
content-type: application/json; charset=utf-8
date: Tue, 02 Jul 2013 22:29:46 UTC
server: tfe
set-cookie: guest_id=v1%3A137280418679958243; Domain=.twitter.com; Path=/; Expires=Thu, 02-Jul-2015 22:29:46 UTC
strict-transport-security: max-age=631138519
x-rate-limit-limit: 180
x-rate-limit-remaining: 0
x-rate-limit-reset: 1372804208

PHP Fatal error:  Cannot use object of type stdClass as array in /srv/www/greptweet.com/json-to-text.php on line 6
edanhewitt saved 0 tweets
removed `edanhewitt.quug'
removed `edanhewitt.LnJV'
removed directory: `lock'

Tried to download, got this:

http://f.cl.ly/items/340s0s1I2z420P3G1d2z/Image%202013-07-02%20at%2011.30.45%20PM.png

[404]

@kaihendry

This comment has been minimized.

Owner

kaihendry commented Jul 3, 2013

We are limited to 180. It gets reset after 15min IIUC. Not sure how we get the larger 300.

Admittedly the error message sucks there. That should be fixed too! Thanks for reporting this.

@kaihendry

This comment has been minimized.

Owner

kaihendry commented Jul 14, 2013

We should be using "application-only authentication"
https://dev.twitter.com/discussions/19338

@kaihendry

This comment has been minimized.

Owner

kaihendry commented Jul 14, 2013

Ok, I've implemented "application-only authentication" @JamieKitson

Though now I need to do a nicer error message.

@kaihendry kaihendry changed the title Rate limits + PHP error An error message when we hit Twitter's ratelimit Apr 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment