I am attempting to download from the database in bulk and received the following error after several hundred movies:
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)
I could turn off verify for
requests
, but is there any reason on the API/website side why this would happen?
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 Travis Bell
on March 18, 2017 at 11:29 AM
No, but what server is error'ing (is it api.themoviedb.org or image.tmdb.org?) and what's the full error message and request/response headers of a request that is failing?
Reply by mac_worthy
on March 19, 2017 at 9:21 AM
Should be the api.themoviedb.org. It was suggested to me that has actually something to do with the rate limit, but pasted below is the full error message.
Reply by Travis Bell
on March 19, 2017 at 1:20 PM
Hi there, ya I'm not sure. I don't have any Python experience so I can't really even troubleshoot much of that.
I know our SSL validates properly, you can see that here. There's a number of Python libraries that I know work for a lot of people, you could compare what you're doing with them.
Reply by mac_worthy
on March 20, 2017 at 10:44 AM
FYI, it does seem to be a rate limiting issue. It triggers the 423 error (though I'm not sure why this is an SSL certificate error). I am going to have to put some form of limitation in.
Reply by Travis Bell
on March 20, 2017 at 11:17 AM
The only rate limit error we publish is a 429. Is that what you meant? It's still served via the same HTTPS connection though, so if that's what you meant, then perhaps something is being triggered with the HTTP lib you are using.
Reply by mac_worthy
on March 20, 2017 at 9:09 PM
Yes, I mean 429. I will look into this and post something here for future readers if I can figure it out.