#47 Youtube API returns 404 when setting the playlist

Closed
opened 3 years ago by LecygneNoir · 2 comments
Owner

Hello,

Since around August 2020, the youtube api always returns a 404 error when uploading a vidéo and setting a playlist for the video:

2020-09-15 07:59:30,318 - Prismedia - INFO: Youtube: Uploading video...
2020-09-15 07:59:38,487 - Prismedia - INFO: Youtube : Video was successfully uploaded.
2020-09-15 07:59:38,487 - Prismedia - INFO: Youtube: Watch it at https://youtu.be/jXYGroTqufA (post-encoding could take some time)
2020-09-15 07:59:38,487 - Prismedia - INFO: Youtube: Configuring playlist...
2020-09-15 07:59:38,819 - Prismedia - CRITICAL: Youtube: <HttpError 404 when requesting https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&alt=json returned "Video not found.">

However, the playlist is correctly set despite the error...

According to test, video appears as "deleted" in the playlist interface while the transcoding is not finished.

The problem is still present with fully up to date google-api libs (release in september 2020), and API documentation has not changed since age.

Currently I suspect that something changed inside youtube itself, and now when a video is transcoding, it "does not exist", perhaps something related with the content ID where Youtube does not publish video until their bot scan it entirely..

As a consequence, when we try to add the video in the playlist, it works BUT something broke as the video is not really existent, and so we get the 404...

At the moment, expect no help from youtube as their "support" is on stackoverflow (lol) and their bug tracker is literally full of bots opening tickets and discussing with themselves since at least 6 month, with no developer present to close bot ticket or answer real questions.

I'll dig if I found something that can help, but I honestly think that their API is fucked up at the moment, and the best solution could be to just ignore this 404...

Hello, Since around August 2020, the youtube api always returns a 404 error when uploading a vidéo and setting a playlist for the video: ``` 2020-09-15 07:59:30,318 - Prismedia - INFO: Youtube: Uploading video... 2020-09-15 07:59:38,487 - Prismedia - INFO: Youtube : Video was successfully uploaded. 2020-09-15 07:59:38,487 - Prismedia - INFO: Youtube: Watch it at https://youtu.be/jXYGroTqufA (post-encoding could take some time) 2020-09-15 07:59:38,487 - Prismedia - INFO: Youtube: Configuring playlist... 2020-09-15 07:59:38,819 - Prismedia - CRITICAL: Youtube: <HttpError 404 when requesting https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&alt=json returned "Video not found."> ``` However, the playlist is correctly set despite the error... According to test, video appears as "deleted" in the playlist interface while the transcoding is not finished. The problem is still present with fully up to date google-api libs (release in september 2020), and [API documentation](https://developers.google.com/youtube/v3/docs/playlistItems/insert) has not changed since age. Currently I suspect that something changed inside youtube itself, and now when a video is transcoding, it "does not exist", perhaps something related with the content ID where Youtube does not publish video until their bot scan it entirely.. As a consequence, when we try to add the video in the playlist, it works BUT something broke as the video is not really existent, and so we get the 404... At the moment, expect no help from youtube as their "support" is on stackoverflow (lol) and their bug tracker is literally full of bots opening tickets and discussing with themselves since at least 6 month, with no developer present to close bot ticket or answer real questions. I'll dig if I found something that can help, but I honestly think that their API is fucked up at the moment, and the best solution could be to just ignore this 404...
Poster
Owner

Someone else has this exact problem with .net library: https://stackoverflow.com/questions/63888856/add-video-to-playlist-after-upload-throws-notfound-error-youtube-api-v3

No answer at the moment, but it seems he has not the problem with python?

Same problem with node: https://stackoverflow.com/questions/63872549/youtube-v3-playlistitems-insert-api-returns-video-not-found-404-error-but-video

Unfortunately I have not enough reputation to comment on stackoverflow, but I'll follow issue hoping some google dev answers (-_-)

Someone else has this exact problem with .net library: https://stackoverflow.com/questions/63888856/add-video-to-playlist-after-upload-throws-notfound-error-youtube-api-v3 No answer at the moment, but it seems he has not the problem with python? Same problem with node: https://stackoverflow.com/questions/63872549/youtube-v3-playlistitems-insert-api-returns-video-not-found-404-error-but-video Unfortunately I have not enough reputation to comment on stackoverflow, but I'll follow issue hoping some google dev answers (-_-)
Poster
Owner

Bug is now officially fixed from Youtube part: https://issuetracker.google.com/issues/168927052

We may remove the workaround asap :-)

Bug is now officially fixed from Youtube part: https://issuetracker.google.com/issues/168927052 We may remove the workaround asap :-)
LecygneNoir added the
bug
label 3 years ago
LecygneNoir added the
Todo
label 3 years ago
LecygneNoir referenced this issue from a commit 3 years ago
LecygneNoir closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.