将新创建的视频添加到播放列表时可能出现的错误 [英] Possible bug when adding a newly created video to a playlist

查看:15
本文介绍了将新创建的视频添加到播放列表时可能出现的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,一个脚本在尝试将新创建的 youtube 视频添加到播放列表时报告失败.

As of recently, a script has been reporting failures when trying to add a newly created youtube video to a playlist.

流程非常简单:

URL being requested: POST https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&alt=json&part=status%2Csnippet
Video id 'ABC123' was successfully uploaded.
Adding ABC123 to playlist MyPlaylistId
URL being requested: POST https://www.googleapis.com/youtube/v3/playlistItems?alt=json&part=snippet
Payload:
{"snippet": {"resourceId": {"kind": "youtube#video", "videoId": "ABC123"}, "playlistId": "MyPlaylistId"}}
Response:
{'status': '404', 'content-length': '226', 'x-xss-protection': '0', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer', 'server': 'scaffolding on HTTPServer2', '-content-encoding': 'gzip', 'cache-control': 'private', 'date': 'Thu, 17 Sep 2020 12:13:36 GMT', 'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"', 'content-type': 'application/json; charset=UTF-8'}
Response content:
{
 "error": {
   "code": 404,
   "message": "Video not found.",
   "errors": [
     {
       "message": "Video not found.",
       "domain": "youtube.playlistItem",
       "reason": "videoNotFound"
     }
   ]
  }
}

现在,有趣的是视频实际上已成功添加到播放列表中.我已经测试了几次,我得到了相同的结果.

Now, the funny part is that the video is actually successfully added to the playlist. I have tested it several times and I get the same result.

谁能确认这个错误?

推荐答案

这似乎确实是一个错误,但据我所知,有关 YouTube API 错误的帖子是:问题跟踪器1.

It seems indeed a bug, but, as far as I know, the site for post about bugs with the YouTube APIs is: Issue Tracker1.

以下链接允许您在问题跟踪器.

The following link allows you create an entry on Issue Tracker.

值得先检查是否存在与您面临的类似问题的条目,如果您在那里找到相关条目,请星";如果您愿意,请注意该问题并跟踪更新.

It is worth check first if entries exists with the similar issue you're facing and if you find related entries there, please "star" that issue to draw attention to it and track updates, if you'd like.

1问题跟踪器显示在 YouTube 数据 API 网站.

1 Issue Tracker is shown (alongside Stack Overflow) at the end of the page of YouTube Data API website.

这篇关于将新创建的视频添加到播放列表时可能出现的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆