dvingerh / PyInstaLive

Python script to download Instagram livestreams.
MIT License
547 stars 111 forks source link

Could not login: Expecting value: line 1 column 1 (char 0) #145

Closed htmlloop closed 2 years ago

htmlloop commented 2 years ago

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

I am using:

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
[I] PYINSTALIVE (SCRIPT V4.0.2 - PYTHON V3.8.10) - 10-24-2022 02:57:34 PM
---------------------------------------------------------------------------
Checking if the proxy is working.
The proxy is working properly.
---------------------------------------------------------------------------
Could not find an existing login session file: XXXXX.dat
A new login session file will be created upon successful login.
Could not login: Expecting value: line 1 column 1 (char 0)
---------------------------------------------------------------------------
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V4.0.2 - PYTHON V3.8.10) - 10-24-2022 04:44:50 PM
---------------------------------------------------------------------------
To see all the available arguments, use the -h argument.

PyInstaLive version:        4.0.2
Python version:             3.8.10
FFmpeg framework:           Available
Login session files:        None found
CLI supports color:         Yes

Configuration file:

    [pyinstalive]
    username = XXXXX
    password = XXXXX
    download_path = /var/www/download
    download_comments = True
    clear_temp_files = False
    cmd_on_started =
    cmd_on_ended =
    ffmpeg_path =
    log_to_file = True
    no_assemble = False
    use_locks = True
    send_heartbeat = True
    proxy = https://XXXXX:8888

End of PyInstaLive information screen.

---------------------------------------------------------------------------

To ask a question, fill in the information below.

Question

Describe your question here as clear as possible.

I am getting the "Could not login: Expecting value: line 1 column 1 (char 0)" message since 10-21-2022

Both of these commands do not work.

I have tried different machines and switched IPs but all getting the same result.

Is it because Instagram have changed some parameters or API Endpoint causing the issue?

Thanks.

energizer91 commented 2 years ago

I've made a PR for this: https://github.com/dvingerh/PyInstaLive/pull/146 You can make this change there and it will start working

htmlloop commented 2 years ago

I've made a PR for this: #146 You can make this change there and it will start working

When I updated the script and run again it shows "[E] Could not login: Ensure your credentials are correct and try again". This may be caused by too much login attempts when the program is broken.

Then I switched IP address and it worked! Thanks!