Giter VIP home page Giter VIP logo

Comments (11)

N4S4 avatar N4S4 commented on May 27, 2024

Can you give more informations?
For a better troubleshooting, can you post the code which gives you this error?

from synology-api.

SaqlainHussainShah avatar SaqlainHussainShah commented on May 27, 2024

`from synology_api import filestation, downloadstation

fl = filestation.FileStation('172.16.0.200', '5000', 'name', 'password', secure=True, cert_verify=True)
fl.get_info()

dwn = downloadstation.DownloadStation('172.16.0.200', '5000', 'username', 'password', secure = True)

dwn.get_info()`

This was the code causing problem
I changed cert_verify to False and now it gives me following issues
keyError Traceback (most recent call last)
in
8 fl.get_info()
9
---> 10 dwn = downloadstation.DownloadStation('172.16.0.200', '5000', 'username', 'password', secure = True)
11
12 dwn.get_info()

~/.local/lib/python3.7/site-packages/synology_api/downloadstation.py in init(self, ip_address, port, username, password, secure, cert_verify)
9 self._bt_search_id = ''
10 self._bt_search_id_list = []
---> 11 self.session.login('DownloadStation')
12 self.session.get_api_list('DownloadStation')
13

~/.local/lib/python3.7/site-packages/synology_api/auth.py in login(self, application)
28 else:
29 session_request = requests.get(self._base_url + login_api, param, verify=self._verify)
---> 30 self._sid = session_request.json()['data']['sid']
31 self._session_expire = False
32 return 'User logging... New session started!'

KeyError: 'data'

from synology-api.

SaqlainHussainShah avatar SaqlainHussainShah commented on May 27, 2024

Can you please help me in this regard @N4S4

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

Ok let me do some checks when i get home. As reminder you can join the telegram group t.me/SynologyApi

I will let you know anyway

from synology-api.

SaqlainHussainShah avatar SaqlainHussainShah commented on May 27, 2024

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

ok so are you using it on your local network or from remote?
if from remote are you sure router port forwarding rules are correct?
are you having a valid certificate to connect with https?

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

i have just noticed that you are using port 5000, secure must be used for https only on port 5001 unless you modified it, try 5001 with secure True or 5000 with secure False

from synology-api.

SaqlainHussainShah avatar SaqlainHussainShah commented on May 27, 2024

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

so try 5000 with secure False and cert_verify false

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

I will close this issue as no activity,
I will keep answering if help is needed, or join the telegram or slack group

from synology-api.

darth-anish avatar darth-anish commented on May 27, 2024

@N4S4 I am facing the original error raised in this issue. Could you please help?

Errror message:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //ip_address:2112/webapi/auth.cgi?api=SYNO.API.Auth&version=7&method=login&account=username&passwd=pw&session=FileStation&format=cookie (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff9ee3cae20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

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.