ArchiveTeam / youtube-grab

Archiving all metadata from YouTube (everything except videos themselves due to size)
The Unlicense
23 stars 2 forks source link

`Lua runtime error: youtube.lua:309: bad argument #1 to 'pairs' (table expected, got nil).` during comments retrieval #5

Open JustAnotherArchivist opened 3 years ago

JustAnotherArchivist commented 3 years ago

Example posted on IRC a couple days ago:

12=200 https://www.youtube.com/youtubei/v1/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8  
switching order
getting replies
getting replies
getting replies
getting replies
getting replies
getting replies
getting replies
getting replies
Lua runtime error: youtube.lua:309: bad argument #1 to 'pairs' (table expected, got nil).
Process WgetDownload returned exit code -6 for Item v1:6ABRmn8NdGA
Failed WgetDownload for Item v1:6ABRmn8NdGA

In a browser, I'm getting 33 comments on that video while the header claims there are 34: https://www.youtube.com/watch?v=6ABRmn8NdGA

It looks like there is a commentRepliesRenderer with no contents and a text of 'View 0 replies from Davids and others'. The problematic comment is Ugj-RG5_tMQbo3gCoAEC. In the browser, that text isn't visible without CSS manipulation as the corresponding div#expander is hidden.

Arkiver2 commented 3 years ago

Unfortunately this video is now unavailable. Do you happen to have another example?

If not - no problem, they are pretty rare, we'll come across another one later one likely.

JustAnotherArchivist commented 3 years ago

Negative, but yeah, we'll see it again eventually.

ThatLurker commented 8 months ago

that error seems to be caused because the video is unavailable.

Received item 'v2:l-L3H95-FV4' from tracker
Starting PrepareDirectories for Item v2:l-L3H95-FV4
Finished PrepareDirectories for Item v2:l-L3H95-FV4
Starting WgetDownload for Item v2:l-L3H95-FV4
Archiving item v2:l-L3H95-FV4.
1=200 https://www.youtube.com/watch?v=l-L3H95-FV4
Lua runtime error: youtube.lua:569: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
        [C]: in function 'pairs'
        youtube.lua:569: in function <youtube.lua:187>.
Process WgetDownload returned exit code -6 for Item v2:l-L3H95-FV4
Failed WgetDownload for Item v2:l-L3H95-FV4
Waiting 10 seconds...
Starting CheckIP for Item
Finished CheckIP for Item
Starting GetItemFromTracker for Item
No item received. There aren't any items available for this project at the moment. Try again later. Retrying after 60 seconds...