XCDYouTubeKit icon indicating copy to clipboard operation
XCDYouTubeKit copied to clipboard

Every request returns error "Too many requests were sent"

Open Keane81 opened this issue 4 years ago • 4 comments

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 avatar Dec 09 '20 18:12 Keane81

Keane81_too_many_requests.zip Some logs from build mentioned in #510 issue.

Keane81 avatar Dec 09 '20 18:12 Keane81

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 avatar Dec 09 '20 19:12 MhmdSalah

@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?

Keane81 avatar Dec 09 '20 19:12 Keane81

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?

manobal avatar Jan 20 '21 17:01 manobal