Hi, I have some problems with rate-limiting. When i hit rate limits x-ratelimit-reset header contains time in past.
here is some logs:
2017/02/23 17:34:51 getTmdb Now: 2017-02-23 17:34:51.287149148 +0100 CET reset 0001-01-01 00:00:00 +0000 UTC
2017/02/23 17:34:51 getTmd Headers: map[Cache-Control:[public, max-age=21600] Content-Type:[application/json;charset=utf-8] Server:[openresty] X-Ratelimit-Remaining:[0] X-Ratelimit-Reset:[1487867684] Content-Length:[57] Access-Control-Allow-Origin:[any] Date:[Thu, 23 Feb 2017 16:34:39 GMT] Etag:[72b32a1f754ba1c09b3695e0cb6cde7f] X-Ratelimit-Limit:[40] -so here we hit the limit
2017/02/23 17:34:51 getTmdb Now: 2017-02-23 17:34:51.405820995 +0100 CET reset 2017-02-23 17:34:46 +0100 CET
2017/02/23 17:34:51 getTmd Headers: map[Server:[openresty] Content-Length:[95] Connection:[keep-alive] Access-Control-Allow-Origin:[any] Content-Type:[application/json; charset=utf-8] Date:[Thu, 23 Feb 2017 16:34:39 GMT] Retry-After:[4]]
17:34:51.512 VideoInfoExtractor GetAssociatedVideos - ERRO : SearchMulti Failed: Code (25): Your request count (41) is over the allowed limit of 40.
The Problem i see that your server has time desync with mine in about 10 secs
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by devrus
on February 23, 2017 at 12:22 PM
Problem is on my side probably...
For some reason ntpd is stopped...
Sorry for taking your time.
Reply by Travis Bell
on February 23, 2017 at 2:57 PM
No problem!