Giter VIP home page Giter VIP logo

Comments (8)

N4S4 avatar N4S4 commented on June 21, 2024

Soon there will be a new release that might fix some login issue. We are looking for more reports that upload functions are working. Could you try to use the updated github version 7.1.1 and see if issue persist?

from synology-api.

tblaudez avatar tblaudez commented on June 21, 2024

I've tried with the latest commit from main (9ada8fc) and the issues persists

from synology-api.

N4S4 avatar N4S4 commented on June 21, 2024

It is a strange error because i do not have any issue logging in. I see the execution script ur using .logout are u trying to login right?

from synology-api.

N4S4 avatar N4S4 commented on June 21, 2024

Could you try to split the script assigning the login to a var than do what you need to do?

test = filestation.FileStation('<IP>', '<PORT>', '<USER>', '<PASSWORD>', secure=True, otp_code='<OTP>', debug=True)

test.logout()

from synology-api.

tblaudez avatar tblaudez commented on June 21, 2024

I used this syntax because this part of my script is merely a test to check if the given credentials are correct.
So I just log in and log out immediately.

I tried again this time assigning Filestation to a variable but the issue persists (still on commit 9ada8fc).

from synology-api.

N4S4 avatar N4S4 commented on June 21, 2024

That is strange. The only thing comes in my mind you can try to change is to change 'enable_syno_token' in auth to 'no' and see what happens. This is the only change made to the api lately.

def login(self, application: str) -> None:
        login_api = 'auth.cgi?api=SYNO.API.Auth'
        params = {'version': self._version, 'method': 'login', 'account': self._username,
                  'passwd': self._password, 'session': application, 'format': 'cookie', 'enable_syno_token':'yes'}

Could you try this?

from synology-api.

fabtesta avatar fabtesta commented on June 21, 2024

The latest lib version works for me.
I've forked this repo (#164) to add the test cases to cover possible differences from my environment, changing the test cases config values.

client info

  • windows 10
  • python 3.12

dsm info

  • DSM 7.1.1-42962 Update 6
  • Synology model DS716+II

from synology-api.

N4S4 avatar N4S4 commented on June 21, 2024

it seems like an isolated case, have you checked your DSM config? i know was working before but people testing did not find same or other issues, i will keep looking at comments but i will close the issue

from synology-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.