Youtube playlistItems list API sometimes works, sometimes throws 404

不打扰是莪最后的温柔 提交于 2019-12-08 08:43:35

问题


I have retrieved upload Id from a channel as shown here(https://www.youtube.com/watch?v=RjUlmco7v2M&t=2s), and using it as playlitstId here https://developers.google.com/youtube/v3/docs/playlistItems/list#try-it Sometimes it gives 200, sometimes 404,

Response {_body: "{↵ "error": {↵ "errors": [↵ {↵ "domain": "yo…003c/code\u003e parameter cannot be found."↵ }↵}↵", status: 404, ok: false, statusText: "OK", headers: Headers…}

Additional info: I have selected part as contentDetails,id,snippet maxResults 50


回答1:


You may check in this documentation the possible reasons why you got a 404 error in PlaylistItems: list. These methods could also return errors listed in the Common errors section.

  • notFound (404)

    • playlistNotFound
      • The playlist identified with the request's playlistId parameter cannot be found.
  • notFound (404)

    • videoNotFound
      • The video identified with the request's videoId parameter cannot be found.
  • required (400)

    • playlistIdRequired
      • The subscribe request does not specify a value for the required playlistId property.

However, if it doesn't solve your issue and you think that it is a bug, you can file a report here.



来源:https://stackoverflow.com/questions/43568521/youtube-playlistitems-list-api-sometimes-works-sometimes-throws-404

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!