YouTube Data API v3-错误500获取播放列表列表 [英] YouTube Data API v3 - Error 500 getting playlist list

查看:101
本文介绍了YouTube Data API v3-错误500获取播放列表列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从流行音乐主题频道获取播放列表时,我遇到 500个内部服务器错误消息(

I am facing a 500 internal server error message when trying to get the playlists from the Pop music-Topic channel ( 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资源管理器上对其进行测试: 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错误.根据此链接,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 Data API v3-错误500获取播放列表列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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