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?
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ مارس 18, 2017 في 11:29 صباحا
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?
رد بواسطة mac_worthy
بتاريخ مارس 19, 2017 في 9:21 صباحا
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.
رد بواسطة Travis Bell
بتاريخ مارس 19, 2017 في 1:20 مساءا
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.
رد بواسطة mac_worthy
بتاريخ مارس 20, 2017 في 10:44 صباحا
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.
رد بواسطة Travis Bell
بتاريخ مارس 20, 2017 في 11:17 صباحا
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.
رد بواسطة mac_worthy
بتاريخ مارس 20, 2017 في 9:09 مساءا
Yes, I mean 429. I will look into this and post something here for future readers if I can figure it out.