- On both of the exports I ran (one with 0.94, the other 0.96), I got
this error at the end:

Code:
--------------------
[13-01-03 20:14:22.7114] Plugins::SmartMix::API::_call (216) Async API call: GET http://developer.echonest.com/api/v4/catalog/read?id=XXXX&results=100&start=53400&api_key=*
  [13-01-03 20:14:22.9586] Plugins::SmartMix::API::__ANON__ (225) do {
  my $a = bless([
  sub { "???" },
  'fix',
  { params => {}, timeout => 15 },

I just added a bit of code to monitor the ratelimit. And I'm pretty sure quite a the few of these failures are due to hitting the limit. In the few minutes I monitored activity I got two such failures due to the limit myself :-(.

The limit of 120 isn't a hard limit it seems. But under heavy load they even lower this value:

[13-01-04 10:28:32.9882] Plugins::SmartMix::API::_getResponseBody (271) x-ratelimit-limit: 91 [13-01-04 10:28:32.9885] Plugins::SmartMix::API::_getResponseBody (271) x-ratelimit-remaining: 87 [13-01-04 10:28:32.9888] Plugins::SmartMix::API::_getResponseBody (271) x-ratelimit-used: 4

At other times they are more generous:

[13-01-04 10:31:28.5371] Plugins::SmartMix::API::_getResponseBody (271) x-ratelimit-limit: 120 [13-01-04 10:31:28.5374] Plugins::SmartMix::API::_getResponseBody (271) x-ratelimit-remaining: 120 [13-01-04 10:31:28.5376] Plugins::SmartMix::API::_getResponseBody (271) x-ratelimit-used: 10

Or their math is totally wrong :-).

--

Michael
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to