Hello Travis,
I am getting a strange error every so often and was wondering if you could help understand it.
ERROR Below:
Fatal error: Uncaught exception 'TMDbException' with message 'Server error on "http://api.themoviedb.org/3/movie/161686/keywords?api_key=APIKEY": HTTP/1.1 503 Service Unavailable Age: 0 Content-Type: text/html; charset=utf-8 Date: Sat, 01 Jun 2013 19:21:05 GMT Retry-After: 0 Server: nginx Via: 1.1 varnish X-Cache: MISS X-Varnish: 419054091 X-Varnish-Sid: tm-v-p-1100 Content-Length: 418 Connection: keep-alive <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Service Unavailable
XID: 419054091
Varnish cache server
' in /home//public_html/TMDb2.php:871 Stack trace: #0 /home//public_html/TMDb2.php(207): TMDb->_makeCall('movie/161686/ke...') #1 in /home/*/public_html/TMDb2.php on line 871Thanks in advance Dale.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Dale
le 1 juin 2013 à 16h43
Does it have anything think to do with the old issue on this topic which is closed http://www.themoviedb.org/talk/512921ea19c2951d8124fb17
Réponse de Travis Bell
le 1 juin 2013 à 16h51
Hi Dale,
Nope, it shouldn't. The load on our servers has been drastically improved over the past month or two with some major work going into performance optimizations.
The most common issue is users hitting the rate limiting. Are you aware of and keeping track of whether or not this could be the case?
Réponse de Dale
le 1 juin 2013 à 17h44
Thanks for getting back to me so fast.
Yea I only allow 3 requests every 10 seconds, so I should be well under the limit. I also ran the other day, a script with no limits and it didn't hit this issue. Seems the limits are not as strict as I thought they might be. (please don't change it because of this comment though.)
Is there a way from the account page or your end to see if I am hitting the limit?
Réponse de Travis Bell
le 3 juin 2013 à 10h23
There is not. Our system for rate limiting is not nearly that fancy although we hope that it will be one day.
When you get these errors are they seemingly random, or is it a particular request or movie that seems to be the primary offender?
Réponse de Dale
le 3 juin 2013 à 12h19
It seems to be just random movies. When I hit the error I start the script from a few movie before that movie it was erroring on and it passes second time around. I would be happy to help with any further investigation if you would like to look into it in more detail? totally understand if you do not, as i'm sure you have already got lots on your plate already.