N4S4 / synology-api

A Python wrapper around Synology API
MIT License
368 stars 138 forks source link

Possible api change #74

Closed nitko12 closed 2 years ago

nitko12 commented 2 years ago

Hi,

I'm using your module in a project, and after update to DSM 7 it throws and error on login

Screenshot 2021-09-22 at 08 15 14

Am I doing something wrong?

On closer inspection it seems the drive returns code 103 somewhere in authentification process.

N4S4 commented 2 years ago

Hi,

Could you post the entire authentication code?

nitko12 commented 2 years ago

Whole of it is in the picture

from synology_api import filestation, downloadstation
fl = filestation("192.168.5.100", "5000", "<user>", "<password>")

Second line produces the error somewhere in the module, if I'm not mistaking, here: https://github.com/N4S4/synology-api/blob/3893dde89679a181c479c744bdea19da809cb594/synology_api/auth.py#L37

tjsry0466 commented 2 years ago

change dsm_version 2 -> '3'

N4S4 commented 2 years ago

Since the last version you need to specify dsm version otherwise DSM 6 will be as default, in the readme file there are instructions,

fl = filestation.FileStation('Synology Ip', 'Synology Port', 'Username', 'Password', secure=True, cert_verify=True, dsm_version=7)

Try like this and let me know please

N4S4 commented 2 years ago

Issue close due to inactivity