-
Notifications
You must be signed in to change notification settings - Fork 2
some error handling cases to cover/be aware of #1
Comments
Wow, thanks for the detailed list! |
Also one other thing to add to this list is that when retrieving the autogenerated Music channel it returned what appeared to be the homepage data (a list of playlist shelves) |
Added backoff retry on 3XX, 429, 5XX |
Also disallowed redirects (for the |
Rewrote the retry code for more flexibility |
What keys can we expect |
|
Now handles missing |
I think most cases are handled now, though some trigger a sleep when they probably shouldn't, such as invalid UCID, non-comment response (music channel), and 400 errors. Deleted channels/valid, non-existent UCIDs are treated as 0 comments currently. |
Check it out when you pass a dead channel, e.g. this might be of use: https://github.com/yt-dlp/yt-dlp/blob/2333ea102986f5ae792d3f297aac04cf8065d9f3/yt_dlp/extractor/youtube.py#L725-L735 |
No alert on that example, still returns the comment header |
With an incorrect-length UCID I get an {
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"errors": [
{
"message": "Request contains an invalid argument.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
} |
TODO: improve handling for non-comment responses (currently sleeps based on existing detections) and handle |
webpage:
API:
Network
data['error']['message']
Server Side issues
onResponseReceivedEndpoints
orreloadContinuationItemsCommand
General errors
data['alerts']
of normal responsesMisc
No comments received on page we had a continuation for (**updated)
continuationItems
inappendContinuationItemsAction
orreloadContinuationItemsCommand
UC5nc_ZtjKW1htCVZVRxlQAQ
UC9nWWJFKULXtjTfEDEPjX6A
API returns a response that is not a comment section
continuationContents
andcontents
since that key is never present for comments?UC-9-kyTW8ZkZNDHQJ6FgpwQ
Recently deleted channels
Recently deleted channels may return one page of comments, but any continuation given for e.g. replies appear to fail.
In this these cases, treat of end of comments when YouTube gives "Requested entity was not found." or "The caller does not have permission" alert.
Missing comment data
Most the time appears to be due to deleted users' comments.
Missing data may include:
The text was updated successfully, but these errors were encountered: