Ok - reverted and tested. I think some of the issues are of my making (i use the aws-sdk package for local testing, which is pretty cool, but problematic for you guys

Moderator: leecollings
Code: Select all
2016-11-29T10:48:53.222Z 691f17c3-b621-11e6-a006-c9681d09aea6 TypeError: Cannot read property 'length' of undefined
at /var/task/domapi.js:401:42
at Request._callback (/var/task/node_modules/domoticz-api/api/domoticz.js:88:13)
at Request.self.callback (/var/task/node_modules/domoticz-api/node_modules/request/request.js:200:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:1067:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:988:12)
at emitNone (events.js:72:20)
Yup, every device is in its relevant room.Madgeni wrote:Hi - and you definitely have devices in your room plans?
I get this error when I am running the command on an iPad and I have the standard hello world test script in the Lambda. Running on a Mac with the discovery test script, it works fine.l0gic wrote:Yup, every device is in its relevant room.Madgeni wrote:Hi - and you definitely have devices in your room plans?
Cheers
Kevin
Code: Select all
START RequestId: 7c80066f-bce0-11e6-a2d3-cb03f3127bfc Version: $LATEST
2016-12-08T00:51:43.346Z 7c80066f-bce0-11e6-a2d3-cb03f3127bfc **** what am i? : "light"
2016-12-08T00:51:43.350Z 7c80066f-bce0-11e6-a2d3-cb03f3127bfc http://user:[email protected]:8080/json.htm?type=command&idx=25¶m=switchlight&switchcmd=Off
2016-12-08T00:51:43.620Z 7c80066f-bce0-11e6-a2d3-cb03f3127bfc SyntaxError: Unexpected token <
at Object.parse (native)
at Request._callback (/var/task/node_modules/domoticz-api/api/domoticz.js:88:58)
at Request.self.callback (/var/task/node_modules/domoticz-api/node_modules/request/request.js:200:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:1067:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:988:12)
at emitNone (events.js:72:20)
END RequestId: 7c80066f-bce0-11e6-a2d3-cb03f3127bfc
REPORT RequestId: 7c80066f-bce0-11e6-a2d3-cb03f3127bfc Duration: 298.79 ms Billed Duration: 300 ms Memory Size: 512 MB Max Memory Used: 27 MB
Process exited before completing request
Madgeni wrote:right. All looks fine, so can you try this? Open a new browser tab from your Smart Home Skill (you'll need this open also)
go here:
https://developer.amazon.com/lwa/sp/overview.html
Create a new security profile, give it a name and description. for the consent privacy url i use: http://www.example.com/privacy and save it.
Then click on the gear and edit Web Settings:
Allowed origins: https://amazon.com
Allowed return URLS: **copy these from your Smart Home Skill - e.g https://pitangui.amazon.com/api/skill/l ... xxxxxxxxxx
Save it.
Then back in your Smart Home Skill Configuration tab:
Authorization URL: https://www.amazon.com/ap/oa
Client ID: This is from the General Tab in your Security Profile
Scope: profile:user_id
Access Token URI: https://api.amazon.com/auth/o2/token
Client Secret: Copy from the General Tab in your Security Profile
Client Authentication Scheme: HTTP Basic
Save it.
Then in http://alexa.amazon.com - disable your skill, then reenable it - this should take you to the Amazon linking site, login via amazon credentials - and see what happens?
Haven't tried that, went straight to the new method.Madgeni wrote:ah ok - and it was working when you used the workaround oauth?
Code: Select all
START RequestId: 9f3aa4c3-bd2c-11e6-b687-0dca2c95e318 Version: $LATEST
2016-12-08T09:56:43.068Z 9f3aa4c3-bd2c-11e6-b687-0dca2c95e318 TypeError: Cannot read property 'length' of undefined
at /var/task/domapi.js:401:42
at Request._callback (/var/task/node_modules/domoticz-api/api/domoticz.js:88:13)
at Request.self.callback (/var/task/node_modules/domoticz-api/node_modules/request/request.js:200:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:1067:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:988:12)
at emitNone (events.js:72:20)
END RequestId: 9f3aa4c3-bd2c-11e6-b687-0dca2c95e318
REPORT RequestId: 9f3aa4c3-bd2c-11e6-b687-0dca2c95e318 Duration: 171.20 ms Billed Duration: 200 ms Memory Size: 512 MB Max Memory Used: 21 MB
Process exited before completing request
Users browsing this forum: No registered users and 1 guest