Closed mikes-techzone closed 8 years ago
it seems the webapi has changed in DSM6
thank you. Yes, I think so, too. but I didn't find any documentation for DSM6. Looks like there is an error with the json response. perhaps also with the authentication, because the 403.
Maybe contact the Synology Support ?
I tested with DSM 6.0-7307 / release candidate of DSM 6.0 and can confirm that the API has changed.
I have a similar issue with DSM 6 beta. As soon as I pull up the accessory in my app and it tries to read the temp and other variables, the server crashes.
[3/23/2016, 5:43:59 PM] [Diskstation] current power state is: true stdout
17:44:00 undefined:1 stderr
17:44:00 403 Forbidden stderr
17:44:00 ^ stderr
17:44:00 stderr
17:44:00 SyntaxError: Unexpected token F stderr
17:44:00 at Object.parse (native) stderr
17:44:00 at null.<anonymous> (/usr/lib/node_modules/homebridge-synology/lib/synology.js:165:29) stderr
17:44:00 at Request.self.callback (/usr/lib/node_modules/homebridge-synology/node_modules/request/request.js:199:22) stderr
17:44:00 at emitTwo (events.js:100:13) stderr
17:44:00 at Request.emit (events.js:185:7) stderr
17:44:00 at Request.<anonymous> (/usr/lib/node_modules/homebridge-synology/node_modules/request/request.js:1036:10) stderr
17:44:00 at emitOne (events.js:95:20) stderr
17:44:00 at Request.emit (events.js:182:7) stderr
17:44:00 at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge-synology/node_modules/request/request.js:963:12) stderr
17:44:00 at emitNone (events.js:85:20)
Yea I have having the same problem as well, I was running the 6.0 RC beta, However Today DSM 6.0 went live so hopefully this will be fixed. This would have been a great feature to add to my Homekit Line-up
New version with support for DSM 6 is available.
403 Forbidden ^
SyntaxError: Unexpected token F at Object.parse (native) at null. (/usr/local/lib/node_modules/homebridge-synology/lib/synology.js:165:29)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-synology/node_modules/request/request.js:199:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request. (/usr/local/lib/node_modules/homebridge-synology/node_modules/request/request.js:1036:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-synology/node_modules/request/request.js:963:12)
at emitNone (events.js:72:20)