0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

Every request returns error "Too many requests were sent" #511

Open Keane81 opened 3 years ago

Keane81 commented 3 years ago

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 commented 3 years ago

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

MhmdSalah commented 3 years ago

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.

Keane81 commented 3 years ago

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

manobal commented 3 years ago

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?