YouTube 数据 API v3 - 获取播放列表时出现错误 500 [英] YouTube Data API v3 - Error 500 getting playlist list
问题描述
我在尝试从流行音乐主题频道获取播放列表(https://www.youtube.com/channel/UCE80FOXpJydkkMo-BYoJdEg):
"error": {
"code": 500,
"message": null
}
我正在使用来自 Youtube Data Api v3 的 youtube.playlists.list 请求.
I am using the youtube.playlists.list request from the Youtube Data Api v3.
您可以通过以下链接在 Google api explorer 上进行测试:https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlists.list?part=snippet&channelId=UCE80FOXpJydkkMo-BYoJdEg&_h=1&
You can test it on the Google api explorer by following this link: https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlists.list?part=snippet&channelId=UCE80FOXpJydkkMo-BYoJdEg&_h=1&
奇怪的是,它几天前就按预期工作了.
What's strange is that it worked as intented some days ago.
有什么想法吗?
谢谢.
推荐答案
我尝试了您的请求,但也收到了 500 错误.根据这个 link,500(内部错误)是一个响应代码,表示YouTube 在处理请求时遇到错误.您可以稍后重试该请求.
I tried your request and I also get the 500 error. According to this link, the 500 (Internal error) is a response code that indicates that YouTube experienced an error handling a request. You could retry the request at a later time.
我尝试了不同的频道 ID 并获得了成功的请求.这是我使用的请求.
I tried different channel id and get a successful request. Here is the request that I use.
https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelId=UCnExqEQyG6WemMK9hpQcoeQ&key=YOUR_API_KEY
我不知道是频道有问题还是 YouTube 本身有问题.但是,如果您尝试不同的频道,它会起作用.
I don't know if the channel has the issue or the YouTube itself. But if you try different channel, it works.
所以我建议像错误所说的那样,稍后重试请求.因为就像你几天前说的那样有效.
So I suggest like the error says, retry the request at a later time. Because like you said it worked some days ago.
有关更多信息,您可以查看此线程.
For more information, you can check this thread.
这篇关于YouTube 数据 API v3 - 获取播放列表时出现错误 500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!