The Movie Database Support

Hi,

Our API requests are failing. I logged in and looked at the stats to see if there was a reason, but nothing appears different on my profile page or API pages. I do see a spike of 5000 requests per day and then it drops off.

The spike in requests are not at all my intended usage of the API service, and I am investigating the cause. I'll be implementing an API daily limit control in my code to prevent such future spikes. The spike appears to be related to a code changes that I rolled out a few days ago.

I'm assuming that my API key has been disabled? if so, can I have it turned back on.

Thanks,

4 replies (on page 1 of 1)

Jump to last post

Hi thinkingmedia,

If you're key is disabled, we would be returning a status code 10. I am pretty sure it's not, we have only disabled a handful of keys in 6 years.

What's an example request that is failing? We do have rate limiting in place which is outlined in the docs. Is it possible you're hitting the rate limit?

I only see the documents mention a limit of 10 requests per second, but I have our API service running with a fixed limit of 1 request every 2 seconds. With a retry interval of 30 seconds. It's suppose to check "now_playing" lists, and if it hasn't changed it will increase the delay for a recheck. It's suppose to only call the API a few times a day, and download new movies as they appear in the lists.

I think when it started failing it didn't record the failure as critical so it kept retrying every 30 seconds which caused the spike in requests. Unfortunately I don't log the response code for the failure (it's handled higher up in the code).

I'm happy to hear we haven't been disabled. I suspect that either I introduced a bug or maybe the API has changed. I'll look into it here and see what's going on. Thanks for the quick reply.

oh wow, this is embarrassing. The production server didn't have the API key configured. Everything is working now. I'll will implement improvements on monitoring the API service. I apologize for the false alarm. I am the only developer working on this project and it is overwhelming me as to how many things need my attention. With both back-end and front-end issues that constantly need work. I hope some day this is all worth it.

Heh, no worries! Happens to all of us.

Cheers.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login