Comments (2)
I added an dummy account and used the debug flag to provide some more information:
Ubuntu:
syno -d -u http://dummy:dummy123@synology:5000 fs getInfo
[DEBUG] : Params URL detected : http://dummy:dummy123@synology:5000.
[DEBUG] : DSM Connection URL configured : http://dummy:dummy123@synology:5000
[DEBUG] : Account: dummy
[DEBUG] : Password: dummy123
[DEBUG] : Host: synology
[DEBUG] : Port: 5000
[DEBUG] : API: 6.2.2
[DEBUG] : Ignore certificate errors: false
[DEBUG] : DSM File Station API command selected
[DEBUG] : Method name configured : getInfo
REQUEST {
rejectUnauthorized: true,
json: true,
url: 'http://synology:5000/webapi/auth.cgi',
qs: {
api: 'SYNO.API.Auth',
version: 3,
method: 'login',
account: 'dummy',
passwd: 'dummy123',
session: 'FileStation',
format: 'sid'
},
callback: [Function]
}
REQUEST make request http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST onRequestResponse http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid 200 {
server: 'nginx',
date: 'Tue, 14 Apr 2020 10:13:17 GMT',
'content-type': 'text/plain; charset="UTF-8"',
'transfer-encoding': 'chunked',
connection: 'close',
vary: 'Accept-Encoding',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
p3p: 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"',
'set-cookie': [
'id=DLXa9pF0vSVQE15B0NON812300;expires=Tue, 21-Apr-2020 10:13:17 GMT;path=/',
'smid=HH7y6gEKeBpX3JwJCUh5j5e8QJVvdRqXsgq6FWMRqyIdx0hozDjzL_Pg26LxweL7c7uYSUufgbcItNYVCx-IXQ;expires=Wed, 14-Apr-2021 10:13:17 GMT;path=/;HttpOnly'
]
}
REQUEST reading response's body
REQUEST finish init function http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST response end http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid 200 {
server: 'nginx',
date: 'Tue, 14 Apr 2020 10:13:17 GMT',
'content-type': 'text/plain; charset="UTF-8"',
'transfer-encoding': 'chunked',
connection: 'close',
vary: 'Accept-Encoding',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
p3p: 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"',
'set-cookie': [
'id=DLXa9pF0vSVQE15B0NON812300;expires=Tue, 21-Apr-2020 10:13:17 GMT;path=/',
'smid=HH7y6gEKeBpX3JwJCUh5j5e8QJVvdRqXsgq6FWMRqyIdx0hozDjzL_Pg26LxweL7c7uYSUufgbcItNYVCx-IXQ;expires=Wed, 14-Apr-2021 10:13:17 GMT;path=/;HttpOnly'
]
}
REQUEST end event http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST has body http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid 61
REQUEST emitting complete http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST {
rejectUnauthorized: true,
json: true,
url: 'http://synology:5000/webapi/entry.cgi',
qs: {
api: 'SYNO.FileStation.Info',
version: '2',
method: 'get',
_sid: 'DLXa9pF0vSVQE15B0NON812300'
},
callback: [Function]
}
REQUEST make request http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300
REQUEST onRequestResponse http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300 200 {
server: 'nginx',
date: 'Tue, 14 Apr 2020 10:13:18 GMT',
'content-type': 'application/json; charset="UTF-8"',
'transfer-encoding': 'chunked',
connection: 'close',
vary: 'Accept-Encoding',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
'cache-control': 'max-age=0, no-cache, no-store, must-revalidate',
pragma: 'no-cache',
expires: '0'
}
REQUEST reading response's body
REQUEST finish init function http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300
REQUEST response end http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300 200 {
server: 'nginx',
date: 'Tue, 14 Apr 2020 10:13:18 GMT',
'content-type': 'application/json; charset="UTF-8"',
'transfer-encoding': 'chunked',
connection: 'close',
vary: 'Accept-Encoding',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
'cache-control': 'max-age=0, no-cache, no-store, must-revalidate',
pragma: 'no-cache',
expires: '0'
}
REQUEST end event http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300
REQUEST has body http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300 348
REQUEST emitting complete http://synology:5000/webapi/entry.cgi?api=SYNO.FileStation.Info&version=2&method=get&_sid=DLXa9pF0vSVQE15B0NON812300
{"enable_list_usergrp":false,"hostname":"DS216","is_manager":true,"items":[{"gid":100},{"gid":101}],"support_file_request":true,"support_sharing":true,"support_vfs":true,"support_virtual":{"enable_iso_mount":true,"enable_remote_mount":true},"support_virtual_protocol":["cifs","nfs","iso"],"system_codepage":"ger","uid":1029}
REQUEST {
rejectUnauthorized: true,
json: true,
url: 'http://synology:5000/webapi/auth.cgi',
qs: { api: 'SYNO.API.Auth', version: 3, method: 'logout', session: null },
callback: [Function]
}
Raspbian:
syno -d -u http://dummy:dummy123@synology:5000 fs getInfo
[DEBUG] : Params URL detected : http://dummy:dummy123@synology:5000.
[DEBUG] : DSM Connection URL configured : http://dummy:dummy123@synology:5000
[DEBUG] : Account: dummy
[DEBUG] : Password: dummy123
[DEBUG] : Host: synology
[DEBUG] : Port: 5000
[DEBUG] : API: 6.2.2
[DEBUG] : Ignore certificate errors: false
[DEBUG] : DSM File Station API command selected
[DEBUG] : Method name configured : getInfo
REQUEST {
rejectUnauthorized: true,
json: true,
url: 'http://synology:5000/webapi/auth.cgi',
qs: {
api: 'SYNO.API.Auth',
version: 3,
method: 'login',
account: 'dummy',
passwd: 'dummy123',
session: 'FileStation',
format: 'sid'
},
callback: [Function]
}
REQUEST make request http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST onRequestResponse http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid 200 {
server: 'nginx',
date: 'Tue, 14 Apr 2020 10:15:43 GMT',
'content-type': 'text/plain; charset="UTF-8"',
'transfer-encoding': 'chunked',
connection: 'close',
vary: 'Accept-Encoding',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
p3p: 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'
}
REQUEST reading response's body
REQUEST finish init function http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST response end http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid 200 {
server: 'nginx',
date: 'Tue, 14 Apr 2020 10:15:43 GMT',
'content-type': 'text/plain; charset="UTF-8"',
'transfer-encoding': 'chunked',
connection: 'close',
vary: 'Accept-Encoding',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
p3p: 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'
}
REQUEST end event http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
REQUEST has body http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid 39
REQUEST emitting complete http://synology:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=dummy&passwd=dummy123&session=FileStation&format=sid
[ERROR] : Error: No such account or incorrect password
at Request._callback (/usr/local/lib/node_modules/syno/dist/syno.js:79:33)
at Request.self.callback (/usr/local/lib/node_modules/syno/node_modules/request/request.js:185:22)
at Request.emit (events.js:310:20)
at Request.<anonymous> (/usr/local/lib/node_modules/syno/node_modules/request/request.js:1154:10)
at Request.emit (events.js:310:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/syno/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:416:28)
at IncomingMessage.emit (events.js:322:22)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 400
}
REQUEST {
rejectUnauthorized: true,
json: true,
url: 'http://synology:5000/webapi/auth.cgi',
qs: { api: 'SYNO.API.Auth', version: 3, method: 'logout', session: null },
callback: [Function]
}
from syno.
Sorry, it looks like the DSM still blocked the IP of my Pi although i deactivated the security feature. Pi to the Whitelist and everything works fine.
from syno.
Related Issues (20)
- Use with React HOT 6
- Typings? HOT 3
- 2-step authentication? HOT 1
- Persist login information? HOT 1
- Video station api documentation seems outdated for new video station version HOT 3
- Some command incompatible with DSM 6.1.1 HOT 1
- Nodejs: syno.vs.listTVShows is not a function HOT 4
- Skip authentication if not needed HOT 1
- Photo Station API? HOT 1
- Audiostation Play Song HOT 1
- Support for Quickconnect; Wait for redirect HOT 1
- How Call additional ? HOT 4
- Error 500 on fs getMethods HOT 1
- Unable to get storage using [list_share]
- how to call surveillance Station Face Result API HOT 1
- Query: Are there any plans to officially support DSM 7.x.x ? HOT 1
- Consider replacing deprecated npm package "request" HOT 1
- Question: Is this repository still maintained? HOT 3
- Unexpected token ' in JSON at position 0
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 syno.