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.
Etkö löydä elokuvaa tai TV-ohjelmaa? Kirjaudu sisään lisätäksesi se.
Haluatko pisteyttää vai lisätä tämän nimikkeen listaan?
Ei rekisteröitynyt jäsen?
Vastaus käyttäjältä Dale
1 kesäkuu 2013 klo 4:43PM
Does it have anything think to do with the old issue on this topic which is closed http://www.themoviedb.org/talk/512921ea19c2951d8124fb17
Vastaus käyttäjältä Travis Bell
1 kesäkuu 2013 klo 4:51PM
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?
Vastaus käyttäjältä Dale
1 kesäkuu 2013 klo 5:44PM
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?
Vastaus käyttäjältä Travis Bell
3 kesäkuu 2013 klo 10:23AM
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?
Vastaus käyttäjältä Dale
3 kesäkuu 2013 klo 12:19PM
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.