The Movie Database qoldaýy

Hey,

I was making 10 requests in 14 seconds as follows but only 2 of them were successful. Please let me know how to fix it. In addition, those X-RateLimit headers make little sense to me.

no. timestamp            status             count(*)    Limit    Remaining    Reset
1.  2015-11-19 11:40:03 HTTP/1.1 429        62
2.  2015-11-19 11:40:05 HTTP/1.1 429        79
3.  2015-11-19 11:40:06 HTTP/1.1 429        98
4.  2015-11-19 11:40:08 HTTP/1.1 429        114
5.  2015-11-19 11:40:09 HTTP/1.1 200 OK                 40        30        1447905064
6.  2015-11-19 11:40:10 HTTP/1.1 200 OK                 40        9         1447905064
7.  2015-11-19 11:40:12 HTTP/1.1 429        58
8.  2015-11-19 11:40:13 HTTP/1.1 429        69
9.  2015-11-19 11:40:15 HTTP/1.1 429        87
10. 2015-11-19 11:40:17 HTTP/1.1 429        105

(*) The number appeared in the error message: "Your request count (##) is over the allowed limit of 40."

Here is my test script: for i in {1..10}; do num=$(printf "%02d" ${i}); curl -D "header${num}.txt" "http://api.themoviedb.org/3/search/tv?api_key=****************************&query=house%20of%20cards&page=1&language=en" > "result${num}.txt"; sleep 1; done

BTW, I am located in Asia. Would a foreign IP do any difference?

3 jaýap (1 ishinen 1 betinde)

Jump to last post

Hi clauslin,

Is your IP shared in any way? You can see your limit going down in between requests (from 30 remaining to 9, so in between there was 21 requests made) so something is making additional calls with your IP.

Hi Travis,

Yes, the IP is shared. I was doing that at my office.

Then, I ran the script at my home and this time 'X-RateLimit-Remaining' decreased as documented. Thanks for your help!

No problem!

Fılmdi nemese kórsetimdi taba almadyńyz ba? Ony jasaý úshin kirińiz.

Ǵalamdyq

s kezelimdi izdeý jolaǵyna aýystyrý
p profaıl mázirin ashý
esc ashyq terezeni jabý
? perneler tirkesimi terezesin ashý

Tasyǵyshtar betterinde

b artqa oralý (nemese qoldanylatyn bolsa, tektikke)
e óńdeý betine ótý

Telemaýsym betterinde

(oń jaq kórsetki) kelesi telemaýsymǵa ótý
(sol jaq kórsetki) aldyńǵy telemaýsymǵa ótý

Epizod betterinde

(oń jaq kórsetki) kelesi epızodqa ótý
(sol jaq kórsetki) aldyńǵy epızodqa ótý

Barlyq keskin betterinde

a keskin ústeý terezesin ashý

Barlyq óńdeý betterinde

t tárjime tańdaǵyshyn ashý
ctrl+ s pishindi jiberý

Talqylaý betterinde

n jańa talqylaýdy jasaý
w qaralǵan kúıin aýystyrý
p jalpy/jekeni aýystyrý
c jabý/ashýdy aýystyrý
a áreketterdi ashý
r talqylaýǵa jaýap berý
l sońǵy jaýapqa ótý
ctrl+ enter habaryńyzdy jiberý
(oń jaq kórsetki) kelesi betke
(sol jaq kórsetki) aldyńǵy betke

Parametrler

Want to rate or add this item to a list?

Kirý