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.

Error when downloading Hashtags: `Expecting value: line 1 column 1 (char 0)`

See original GitHub issue

Describe the bug Hashtags not found when using session

To Reproduce Steps to reproduce the behavior:

$ instaloader -l rayamberg "#lisaandrewsartist"
Loaded session from /home/rsa/.config/instaloader/session-rayamberg.
Logged in as rayamberg.
JSON Query to explore/tags/lisaandrewsartist/: Expecting value: line 1 column 1 (char 0) [retrying; skip with ^C]
JSON Query to explore/tags/lisaandrewsartist/: Expecting value: line 1 column 1 (char 0) [retrying; skip with ^C]
Get hashtag #lisaandrewsartist: JSON Query to explore/tags/lisaandrewsartist/: Expecting value: line 1 column 1 (char 0)
Saved session to /home/rsa/.config/instaloader/session-rayamberg.

Errors or warnings occurred:
Get hashtag #lisaandrewsartist: JSON Query to explore/tags/lisaandrewsartist/: Expecting value: line 1 column 1 (char 0)

Expected behavior I expected to be able to download the posts for the given hashtag. Note that it works when I supply the password directly to instaloader:

$ instaloader -l rayamberg -p ****** "#lisaandrewsartist"
Session file does not exist yet - Logging in.
Logged in as rayamberg.
#lisaandrewsartist/2022-04-20_06-34-03_UTC_profile_pic.jpg 
Retrieving pictures with hashtag #lisaandrewsartist...
[  1] #lisaandrewsartist/2022-04-20_06-42-39_UTC.jpg [Meet the Artist Lisa Andrews …] json 
[  2] #lisaandrewsartist/2022-04-20_06-42-33_UTC.jpg [Meet the Artist Lisa Andrews …] json 
[  3] #lisaandrewsartist/2022-04-20_06-37-47_UTC.jpg [We love this painting of Swee…] json 
...
Saved session to /home/rsa/.config/instaloader/session-rayamberg.
$

Error messages and tracebacks See traceback above

Instaloader version 4.9.1

Additional context It’s happening for all hashtags I am testing. They all return posts when I don’t use a session and return the JSON Query error when I do use a session. I can download other things when I use a session, e.g. instaloader -l rayamberg someprofile works. I’m writing a python script and getting the same unexpected behavior when I use load_session_from_file("rayamberg") and expected behavior when I use login("rayamberg", "mypass"). I used the Firefox script on the troubleshooting page to try to resolve the issue, and although it appeared to successfully import the session, the issue persists.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:22 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Thammuscommented, Jul 14, 2022

Thanks for the bug report. I was able to reproduce the error. It actually appears both when using an existing session and when using a fresh login.

4reactions
kuahhxcommented, Aug 2, 2022

Same, im getting the html in my resp and it crashes. Any clues or any details on fixes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The URL I use for the API call works fine in the browser, but gives this error when done through a curl request....
Read more >
Expecting value: line 1 column 1 (char 0) Mac Fix
Error while installing expecting value line 1 column 1 (char 0) is a Mac error that may indicate the presence of malware or...
Read more >
Expecting Value: Line 1 column 1 (char 0) - Python Pool
JSONDecodeError : Expecting value: line 1 column 1 (char 0) occurs while working with JSON (JavaScript Object Notation) format.
Read more >
twitter-scraper - Bountysource
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0). During handling of the above exception, another exception occurred: 0 likes ...
Read more >
Mining Twitter Data with Python (Part 2: Text Pre-processing)
i am also getting this same error “json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)” on this line “tweet ...
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