Closed jlstanus closed 2 years ago
Hi, according to Web_API_Guide, 119 means invalid session. How do you initialize SynologyDrive?
Like this
What's an invalid session?
Sorry,I can't reproduce this error. Did you try some other api requests such as download somthing?
@jlstanus The program is not executed within the scope of the with statement
with SynologyDrive(NAS_USER, NAS_PASS, NAS_IP) as synd:
pass // __exit__ (logout) will be triggered when you leave this line
labels = synd.get_labels() // got invalid session error because it's logged out.
print(labels)
with SynologyDrive(NAS_USER, NAS_PASS, NAS_IP) as synd:
labels= synd.get_labels()
print(labels)
// other logic...
// __exit__ (logout) will be triggered when finished all logic
I tried to connect to drive. I get always a 119 error
No problem with https://github.com/N4S4/synology-api