Rate limit exceeded for widgets

htmlcssjsru
@htmlcssjsru HTML CSS JS ++

HTML page: http://htmlcssjs.ru/CSS/?24

Widget code on the page:

  1. <script src="http://widgets.twimg.com/j/2/widget.js"></script>
  2. <script>
  3. new TWTR.Widget({
  4.   version: 2,
  5.   type: 'profile',
  6.   rpp: 3,
  7.   interval: 30000,
  8.   width: 'auto',
  9.   height: 300,
  10.   theme: {
  11.     shell: {
  12.       background: '#F0F0F0',
  13.       color: '#000000'
  14.     },
  15.     tweets: {
  16.       background: '#F0F0F0',
  17.       color: '#000000',
  18.       links: '#AA0000'
  19.     }
  20.   },
  21.   features: {
  22.     scrollbar: false,
  23.     loop: false,
  24.     live: false,
  25.     hashtags: true,
  26.     timestamp: true,
  27.     avatars: false,
  28.     behavior: 'all'
  29.   }
  30. }).render().setUser('htmlcssjsru').start();
  31. </script>

Error opening http://api.twitter.com/1/statuses/user_timeline.json?screen_name=htmlcssjsru&callback=TWTR.Widget.receiveCallback_1&include_rts=true&count=3&clientsource=TWITTERINC_WIDGET&1318501892982=cachebust

Code inside the above URL:

  1. TWTR.Widget.receiveCallback_1({"error":"Rate limit exceeded. Clients may not make more than 150 requests per hour.","request":"\/1\/statuses\/user_timeline.json?screen_name=htmlcssjsru&callback=TWTR.Widget.receiveCallback_1&include_rts=true&count=3&clientsource=TWITTERINC_WIDGET&1318501892982=cachebust"})

Outcome: the widget is not displayed. How come? I'm not polling anything, the widget is static.

2 years 26 weeks ago

Replies

episod
@episod Taylor Singletary

This happens because essentially the widgets are API clients like any other API client -- but they are making unauthenticated requests to the API, for which a single IP address has only 150 requests per hour. If any other device, web browser, or app on your IP address were making unauthenticated requests to the API at a given block of time, it would be decrementing from the pool.

When another user is viewing the widget from a different IP address, they most likely see it display just fine.

2 years 26 weeks ago
Emerging_Stars
@Emerging_Stars Emerging Stars

Do you know how I can authorize widgets ?

And if not does twitter have any similar facility where I can fetch my tweets and display them ?

It is very frustrating when it comes to modifying the styles with given "ready made widget".

Regards
Amjad

1 year 6 weeks ago
johnfontaine
@johnfontaine John Fontaine

When there are a large number of users sharing an IP address such as behind a NAT device this is problematic. This is a fairly typical problem on corporate networks and on campus. I've also seen this issue appear on iPhone when using the mobile view.

2 years 14 weeks ago