sertalpbilal / FPL-Optimization-Tools

A collection of tutorials and recipes to use optimization for winning Fantasy Premier League :)
Apache License 2.0
129 stars 45 forks source link

getting a login error. #6

Closed jeski closed 2 years ago

jeski commented 2 years ago

script has been working fine until today. I've created a team.json file and now getting the following error:

Login attempt failed, checking local file Traceback (most recent call last): File "solve_regular.py", line 20, in my_data = json.load(f) File "/usr/lib/python3.8/json/init.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/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)

sertalpbilal commented 2 years ago

Hey @jeski, maybe there is an issue with the content of the team.json file? Does it look like a valid JSON to you?

jeski commented 2 years ago

thank you, that was it.