XCDYouTubeKit
XCDYouTubeKit copied to clipboard
Every request returns error "Too many requests were sent"
Hi, I am getting error for every request
Video operation finished with error: The operation couldn’t be completed because too many requests were sent.
Domain: XCDYouTubeVideoErrorDomain
Code: -1
User Info: {
NSLocalizedDescription = "The operation couldn\U2019t be completed because too many requests were sent.";
NSUnderlyingError = "Error Domain=XCDYouTubeVideoErrorDomain Code=-4 \"The operation couldn\U2019t be completed because too many requests were sent.\" UserInfo={NSLocalizedDescription=The operation couldn\U2019t be completed because too many requests were sent.}";
}
It is reproducable in Demo iOS also and it looks like it is also reproducable with 2.15.1 version of the library. Could you please take a look?
Keane81_too_many_requests.zip Some logs from build mentioned in #510 issue.
This problem is related to the ip. Youtube blocked your ip. Try with a different ip to make sure. You can use vpn or a different connection.
@MhmdSalah thanks, yeah, you're right, it looks like my ip has been blocked for some reasons. Do you know how to deal with it?
I am also seeing the same issue on my iPhone.. Videos work when I am on WiFi but don't work on cellular network because of the same "too many requests" error.. Also this does not happen with every video.. some videos work on both WiFi & Cellular and some only on WiFi..
Also, I didn't send too many request.. I am wondering if there is some issue with the library that is causing this issue?
@Keane81 were you able to resolve this issue?