Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer works: XCDYouTubeVideoErrorDomain error -3 #530

Closed
ryanfrancesconi opened this issue May 24, 2021 · 22 comments
Closed

No longer works: XCDYouTubeVideoErrorDomain error -3 #530

ryanfrancesconi opened this issue May 24, 2021 · 22 comments

Comments

@ryanfrancesconi
Copy link

Has google changed their API?

sample video I'm trying:

https://www.youtube.com/watch?v=MkU8v1genz0
2021-05-24 15:08:01.085443-0700 ADD[13367:365927] [XCDYouTubeKit] Failed to decode response from https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=MkU8v1genz0 (response.textEncodingName = utf-8, data.length = 0)

2021-05-24 15:08:01.086579-0700 ADD[13367:365927] [XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. 
(XCDYouTubeVideoErrorDomain error -3.)
Domain: XCDYouTubeVideoErrorDomain
Code:   -3
User Info: {
}

I see -3 has this note:
Returned when an empty response is returned. This may indicate that YouTube has blocked requests from your IP address because of overuse.

Would be curious if others are seeing this as I don't use this enough to be blocked.

Thanks,
Ryan

@ryanfrancesconi
Copy link
Author

duplicate of: #525

@ryanfrancesconi
Copy link
Author

The merged PR doesn't show up in the SPM release yet.

@Muhammad572
Copy link

Hi
I want to know when will this issue be resolved
thanks

@hArshpb11
Copy link

hArshpb11 commented May 27, 2021

Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix.
Replac line number 152,361 with new one that i have listedout at bottom.

File : XCDYouTubeVideoOperation

line: 152
line: 361

Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};

Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};

@Muhammad572
Copy link

Thank
@hArshpb11 this fixed for me.....

@Soliy0u
Copy link

Soliy0u commented May 29, 2021

Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix.
Replac line number 152,361 with new one that i have listedout at bottom.

File : XCDYouTubeVideoOperation

line: 152
line: 361

Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default", @"html5" : @1 };

Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"eurl": eurl, @"sts": sts, @"html5" : @1 };

It's worked for me. Thank bro!

@wasim954
Copy link

wasim954 commented Jun 2, 2021

When we can expect this fix in new pod version

@0xced

@thisistorsten
Copy link

Fixed here snakx/YouTubeApiSharp@e7dd772

@johnnie476
Copy link

johnnie476 commented Jun 19, 2021

Need to make little modification in "XCDYouTubeVideoOperation.m" For make this Fix cause the api we are using in isn't working for me(may be Api is depricated or something else i don't know)

File : XCDYouTubeVideoOperation.m

Modification for line 151: NSDictionary *query = @{ @"id": self.videoIdentifier};

Modification for line 153: NSURL *videoInfoURL = [NSURL URLWithString:[@"https://www.googleapis.com/youtube/v3/videos?part=id%2C+snippet&key={YOUR_API_KEY_HERE}" stringByAppendingString:queryString]];

you can get your api key from google console "YouTube Data API v3"

@hArshpb11
Copy link

Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix.
Replac line number 152,361 with new one that i have listedout at bottom.

File : XCDYouTubeVideoOperation

line: 152
line: 361

Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};

Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};

here is a few minor things that make it working again.

@devbest555
Copy link

hArshpb11

Need to make little modification in "XCDYouTubeVideoOperation" For make this Fix.
Replac line number 152,361 with new one that i have listedout at bottom.
File : XCDYouTubeVideoOperation
line: 152
line: 361
Modification for line 152: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};
Modification for line 361: NSDictionary *query = @{ @"video_id": self.videoIdentifier, @"hl": self.languageIdentifier, @"el": eventLabel, @"ps": @"default" , @"html5" : @1,@"html5" : @1, @"c":@"TVHTML5", @"cver":@6.20180913};

here is a few minor things that make it working again.

Hi, hArshpb11
did you test the live videos?
For "LIVE NOW" videos, it does play ?

@cbg-dev-k
Copy link

Livestreams worked for me using the above fix

@devbest555
Copy link

can we chat in Skype or Telegram now?
my skype : live:.cid.e5675d33daad7e3f
telegram : @fullstackwe
Thank you in advance

@devbest555
Copy link

Livestreams worked for me using the above fix

Awaiting your reply

@devbest555
Copy link

Livestreams worked for me using the above fix

live videoIDs : hartiIFC1s4, azl07ua79pa
can you test these videos works in your side using XDCYouTubeVideoKit?

Wsewlad added a commit to Wsewlad/XCDYouTubeKit that referenced this issue Jun 29, 2021
sergeygarazha added a commit to summerlabs/XCDYouTubeKit that referenced this issue Jul 7, 2021
sixty8 added a commit to sixty8/XCDYouTubeKit that referenced this issue Jul 9, 2021
@tungdangplus
Copy link

It happens again today Jul 22, 2021.

@dcristolovean
Copy link

kinda happens monthly, what's going on here ? :(

@ryanfrancesconi
Copy link
Author

my guess is that google is tired of non google access by downloaders such as this framework.

@devbest555
Copy link

Fortunately, this error solved already

my guess is that google is tired of non google access by downloaders such as this framework.

@GregoireTapptic
Copy link

@devbest555 where exactly?

@tungdangplus
Copy link

Can anyone show me where to find final solution if any?

@dcristolovean
Copy link

Yes, stop using this lib, it's doomed anyway. Use the youtube-ios-player-helper instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests