问题
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.
- playlistNotFound
notFound (404)
- videoNotFound
- The video identified with the request's videoId parameter cannot be found.
- videoNotFound
required (400)
- playlistIdRequired
- The subscribe request does not specify a value for the required playlistId property.
- playlistIdRequired
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