Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JustAnotherArchivist opened this issue Jul 26, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@JustAnotherArchivist
Copy link

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.

@JustAnotherArchivist JustAnotherArchivist added the bug Something isn't working label Jul 26, 2021
@Arkiver2
Copy link
Member

Arkiver2 commented Jul 30, 2021

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
Copy link
Author

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

@ThatLurker
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants