Closed shaft3796 closed 2 years ago
Nas: DS21Plus
Code used:
from synology_api import filestation ip = 'xx.xx.xx.xx port = '5001' username = 'xxxxxxxxxxxxxxxxxxx' password = 'xxxxxxxxxxxxxxxxxxx' fl = filestation.FileStation(ip, port, username, password, secure=False, dsm_version=7, debug=True, otp_code=None)
Exception:
Traceback (most recent call last): File "x\test.py", line 8, in fl = downloadstation.DownloadStation(ip, port, username, password, secure=False, dsm_version=7, debug=True, otp_code=None) File "x\Python310\lib\site-packages\synology_api\downloadstation.py", line 11, in __init__ self.session.login('DownloadStation') File "x\Python310\lib\site-packages\synology_api\auth.py", line 42, in login self._sid = session_request.json()['data']['sid'] File "x\Python310\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "x\Python310\lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) File "x\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "x\Python310\lib\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)
Thanks for your help.
Nas: DS21Plus
Code used:
Exception:
Thanks for your help.