rbignon / doctoshotgun

Script to automatically book a vaccine slot on Doctolib in the next seven days.
GNU General Public License v3.0
549 stars 143 forks source link

Fails to decode JSON on start. #309

Open PierreLeGuen opened 2 years ago

PierreLeGuen commented 2 years ago

Since this morning the script isn’t able to start. Please, find below the error I get:

~/doctoshotgun$ ./doctoshotgun.py fr brest mail@gmail.com
Password: 

Traceback (most recent call last):
  File "/home/user/doctoshotgun/./doctoshotgun.py", line 949, in <module>
    sys.exit(Application().main())
  File "/home/user/doctoshotgun/./doctoshotgun.py", line 744, in main
    docto.load_state(self.load_state())
  File "/home/user/doctoshotgun/./doctoshotgun.py", line 662, in load_state
    state = json.load(fp)
  File "/usr/lib/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
nicolaus-hee commented 2 years ago

I cannot replicate.

PierreLeGuen commented 2 years ago

Did you try with 2FA account?

nicolaus-hee commented 2 years ago

Yes