Comments (11)
Can you give more informations?
For a better troubleshooting, can you post the code which gives you this error?
from synology-api.
`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.
Can you please help me in this regard @N4S4
from synology-api.
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.
from synology-api.
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.
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.
from synology-api.
so try 5000 with secure False and cert_verify false
from synology-api.
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.
@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)
- KeyError: 'data' HOT 6
- json.decoder.JSONDecodeError
- BUG report: upload larg file >4G . error:OverflowError: string longer than 2147483647 bytes HOT 1
- always only return You are now logged in! nothting else ! HOT 2
- Improve login handling HOT 8
- Machine oriented outputs for async start function HOT 2
- About Universal search Api parameter HOT 2
- `filestations.upload_file(...)` does not return anything meaninful anymore HOT 5
- Basic Usage Http Example issue "self.download_list[api_name]" is empty when secure is False HOT 12
- Is it possible to make download station create task utilizing torrent file? HOT 6
- error code not match with api document HOT 2
- Upgrade to (at least) Python 3.8 HOT 3
- Command Line Interface Support HOT 5
- `Data request failed` blinker error since upgrade from `0.5.1` to `0.6.2` HOT 6
- `shutdown` request from SYNO.Core.System not working properly HOT 4
- Tasks for Active Backup for Business HOT 7
- DownloadStation.create_task cannot handle destinations with whitespace HOT 1
- Remove synology-api-cli branch HOT 3
- get a error when use the method rename_folder HOT 7
- TypeError: __init__() got an unexpected keyword argument 'dsm_version' HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synology-api.