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 的回复
于 2017 年 03 月 18 日 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 的回复
于 2017 年 03 月 19 日 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 的回复
于 2017 年 03 月 19 日 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 的回复
于 2017 年 03 月 20 日 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 的回复
于 2017 年 03 月 20 日 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 的回复
于 2017 年 03 月 20 日 9:09下午
Yes, I mean 429. I will look into this and post something here for future readers if I can figure it out.