kwent/syno

error

Closed this issue · 2 comments

I get this error:

syno fs getFileStationInfo --pretty
/usr/lib/node_modules/syno/dist/syno.js:78
                        code = body.error ? body.error.code : body.data[0].error;
                                                                       ^

TypeError: Cannot read property '0' of undefined
    at Request._callback (/usr/lib/node_modules/syno/dist/syno.js:78:72)
    at Request.self.callback (/usr/lib/node_modules/syno/node_modules/request/request.js:199:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/lib/node_modules/syno/node_modules/request/request.js:1036:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/syno/node_modules/request/request.js:963:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)

The password is correct with above message. I tested by trying with a wrong password and got:
syno fs getFileStationInfo --pretty [ERROR] : Error: Permission denied

I am running DSM 6.0-7307 / this is the current release candidate of DSM 6.0.

kwent commented

@cbrandlehner I just released a new 2.0.0 version which support 5.x and 6.x version ! Give it a shot ! That should fix your issue.

kwent commented

syno fs getInfo --pretty should work.