question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

list index out of range

See original GitHub issue

Describe the bug I just run the following command, and an list index out of range error is thrown

To Reproduce Steps to reproduce the behavior: C:\Users\brian\Downloads\instaloader.exe --login=MY_ACC --filename-pattern="Story\{filename}" --no-video-thumbnails --no-captions --no-metadata-json --no-posts --no-iphone --highlights profile "ho_pui"

Expected behavior A clear and concise description of what you expected to happen (even if it seems obvious). Expected to download properly…

Error messages and tracebacks If applicable, add error messages and tracebacks to help explain your problem.

[ 89/ 97] Warning: Unable to fetch video from graphql of <StoryItem 2618268297992604248>: list index out of range
Warning: Unable to fetch video from graphql of <StoryItem 2618268297992604248>: list index out of range
Traceback (most recent call last):
  File "__main__.py", line 501, in <module>
  File "__main__.py", line 498, in __main
  File "__main__.py", line 467, in main
  File "__main__.py", line 220, in _main
  File "instaloader\instaloader.py", line 1421, in download_profiles
  File "instaloader\instaloader.py", line 80, in call
  File "instaloader\instaloader.py", line 926, in download_highlights
  File "instaloader\instaloader.py", line 854, in download_storyitem
  File "instaloader\instaloader.py", line 96, in call
  File "instaloader\instaloader.py", line 315, in download_pic
  File "C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\re.py", line 201, in search
TypeError: expected string or bytes-like object
[3396] Failed to execute script __main__

Instaloader version instaloader --version output. 4.8.4, 4.8.5

Additional context Add any other context about the problem here. Running the command without --no-iphone works fine but slower, with --no-iphone runs faster but stopped at that place

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Xompscommented, Aug 24, 2022

I am also getting this error on latest version (4.9.3), using --no-iphone made no difference.

1reaction
DReapercommented, Aug 21, 2022

I am getting this error too.

[ 19/ 99] \Q&A\2022-04-26_04-37-23_UTC.jpg exists Warning: Unable to fetch video from graphql of <StoryItem 2824677720604339095>: list index out of range Unable to fetch high-quality video version of <StoryItem 2824677720604339095>: ‘video_versions’ Traceback (most recent call last): File “main.py”, line 505, in <module> File “main.py”, line 502, in __main File “main.py”, line 471, in main File “main.py”, line 220, in _main File “instaloader\instaloader.py”, line 1456, in download_profiles File “instaloader\instaloader.py”, line 81, in call File “instaloader\instaloader.py”, line 960, in download_highlights File “instaloader\instaloader.py”, line 887, in download_storyitem File “instaloader\instaloader.py”, line 97, in call File “instaloader\instaloader.py”, line 340, in download_pic File “re.py”, line 201, in search TypeError: expected string or bytes-like object [25588] Failed to execute script ‘main’ due to unhandled exception!

Read more comments on GitHub >

github_iconTop Results From Across the Web

List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >
Indexerror: list Index Out of Range in Python - STechies
“List index out of range” error occurs in Python when we try to access an undefined element from the list. The only way...
Read more >
Index Error: list index out of range (Python) - Stack Overflow
Generally it means that you are providing an index for which a list element does not exist. E.g, if your list was [1,...
Read more >
Python IndexError: List Index Out of Range Error Explained
We can break down the text a little bit. We can see here that the message tells us that the index is out...
Read more >
Python IndexError: List Index Out of Range [Easy Fix] - Finxter
The error “list index out of range” arises if you access invalid indices in your Python list. For example, if you try to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found