Re: [nodejs] Node.js - Rate limit exceeded when consuming friends/ids

290 views
Skip to first unread message

pushpinder rattan

unread,
Jul 5, 2012, 8:28:59 AM7/5/12
to nod...@googlegroups.com
which module are you using for the GET request?


On Thu, Jul 5, 2012 at 4:37 PM, Sara P <fuel...@gmail.com> wrote:

I am creating a node.js app that interacts with twitter REST API to get user's information. I cannot get oauth to work as I'm receiving the
rate limit warning "Rate limit exceeded. Clients may not make more than 150 requests per hour". But I am able to get the results with response status set to 200 OK

My GET request header looks like below,


{ authorization: 'OAuth oauth_consumer_key="2SrY0yqoV7u11sBZVazpFg",oauth_nonce="efvvn5fr5VWw",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1341486006",oauth_token="523050582-QizPw7WfKJVrUQ3N0SL3FDYnuO0Kv1i4W0ghjrK1",oauth_version="1.0",oauth_signature="R94taCP2bEHV1z4QV5Bm8IZx2cQ%3D"',

  host: 'api.twitter.com',

  accept: '*/*',

  connection: 'keep-alive',

  'user-agent': 'NodeJS',

  'content-length': 0,

  'content-type': 'application/x-www-form-urlencoded' }

am able to get my Oauth call without any problem using java and I am getting this issue only with node.js. So my oauth_token seems to be valid and I believe there is something wrong with my header and signed request.

Can anyone please help me in finding what I am doing wrong here? I am using node-v0.8.0 and using request module. I tried node-oauth and other custom written ones but in vain.


Thanks in advance.




--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Roly Fentanes

unread,
Jul 5, 2012, 11:26:17 AM7/5/12
to nod...@googlegroups.com
Have you tried ntwitter? It's pretty good for interacting with twitter.

Sara P

unread,
Jul 5, 2012, 12:24:30 PM7/5/12
to nod...@googlegroups.com
Solved the problem.


@Roly Fentanes & @pushpinder rattan Thanks a lot guys for your reply.

I tried node-oauth, request, ntwitter etc and nothing worked..
Everything was right and the problem is with the twitter app I have created. Something have messed up.
I recreated my twitter app and got the new oauth token and it started working...

I found this article useful for debugging oauth, https://dev.twitter.com/discussions/204

Thanks a lot...

Brandon Benvie

unread,
Jul 6, 2012, 9:54:35 AM7/6/12
to nod...@googlegroups.com
I think maybe you should stop consuming friends and take a good hard look at what horrific things you've been doing. Cannibalism is frowned upon, much more so when it's your own tribe.

Reply all
Reply to author
Forward
0 new messages