question

newuser-a71aa058-4d33-420c-9646-82498f240979 avatar image

Why is my skill unable to invoke Lambda?

Hi

i have created alexa skill with language support English (IN). Also hosted my lambda in EU ireland.
but when i test my skill i am unable to discover devices. It seems like my lambda function is not getting invoked. Also i have tried testing my lambda function using manual json , it worked..Don't know why my skill is unable to invoke lambda .

alexa skills kitalexa smart homedevice discovery
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

roy-1 avatar image
roy-1 answered

Hello,

Thanks for posting.

The first thing that I'd recommend checking is that the account that you're testing with is set to the India region so that it can successfully discover devices since your skill has an English (IN) locale.

For help changing this setting on your account, please direct your inquiries to:

https://www.amazon.com/gp/help/contact-us/general-questions.html


Please let us know if you're still running into any issues.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-a71aa058-4d33-420c-9646-82498f240979 avatar image
newuser-a71aa058-4d33-420c-9646-82498f240979 answered

Hello Roy

Sorry for the delay in responding. Still i have the same issue. I have checked my developer account country setting it's still pointing to india. Also my Alexa skill need to support only English IN. I have configured my AWS console to EU Ireland. But still i don't know what i have done wrong. This is my 4th alexa skill submission . Previous 3 were got approved but they too had the same issue when creating indian skill. Previous skills account names were Voiceskills@wisilica.com And smart.light@samsung.com. For those skills the issue was we were giving same skill name for all region skill and we reported this issue with amazon.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-a71aa058-4d33-420c-9646-82498f240979 avatar image
newuser-a71aa058-4d33-420c-9646-82498f240979 answered

Also i have one more issue. When i change my kindle setting to india i am not able to see my Dev skill in alexa web app. https://alexa.amazon.in/spa/index.html#skills/your-skills/?ref-suffix=ysa_gw.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

roy-1 avatar image
roy-1 answered

Hello,


Are you testing from the same user account that you created the skill with? If not, you can invite additional accounts to beta test the skill from the distribution tab of your skill within the Developer Console.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-a71aa058-4d33-420c-9646-82498f240979 avatar image
newuser-a71aa058-4d33-420c-9646-82498f240979 answered

yes i am using the same developer account. Now i changed my developer account kindle settings to amazon.in and tried login to alexa web app, now my skill is not getting listed in Dev skills tab.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-a71aa058-4d33-420c-9646-82498f240979 avatar image
newuser-a71aa058-4d33-420c-9646-82498f240979 answered

Hello Roy

Now it's working. I just logged out and logged in again

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-a71aa058-4d33-420c-9646-82498f240979 avatar image
newuser-a71aa058-4d33-420c-9646-82498f240979 answered

Hello Roy,

I submitted my skill yesterday and it did not pass the certification. The response was they were not able to discover devices. But when i checked here i am able to discover devices successfully.But sometimes discovery fails and when i checked the logs in clowdWatch my discovery response was correct and still devices are not listing
{ "header": { "namespace": "Alexa.Discovery", "name": "Discover.Response", "payloadVersion": "3", "messageId": "0fc32f9a-3682-40ab-bc4b-78218da8fc4c" }, "payload": { "endpoints": [ { "endpointId": "2060-18661-#-#-0", "manufacturerName": "2060", "friendlyName": "Home Default Group", "description": "Home Default Group", "displayCategories": [ "LIGHT" ], "cookie": { "key1": "WiSilica", "key2": "WiSilica", "key3": "WiSilica", "key4": "WiSilica" }, "capabilities": [ { "type": "AlexaInterface", "interface": "Alexa", "version": "3" }, { "type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3", "properties": { "supported": [ { "name": "powerState" } ], "proactivelyReportable": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa.ColorController", "version": "3", "properties": { "supported": [ { "name": "color" } ], "proactivelyReportable": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa.ColorTemperatureController", "version": "3", "properties": { "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReportable": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa.BrightnessController", "version": "3", "properties": { "supported": [ { "name": "brightness" } ], "proactivelyReportable": true, "retrievable": true } } ] }, { "endpointId": "2060-18661-6758-1021-1", "manufacturerName": "2060", "friendlyName": "Home kitchen light", "description": "Home kitchen light", "displayCategories": [ "LIGHT" ], "cookie": { "key1": "WiSilica", "key2": "WiSilica", "key3": "WiSilica", "key4": "WiSilica" }, "capabilities": [ { "type": "AlexaInterface", "interface": "Alexa", "version": "3" }, { "type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3", "properties": { "supported": [ { "name": "powerState" } ], "proactivelyReportable": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa.ColorController", "version": "3", "properties": { "supported": [ { "name": "color" } ], "proactivelyReportable": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa.ColorTemperatureController", "version": "3", "properties": { "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReportable": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa.BrightnessController", "version": "3", "properties": { "supported": [ { "name": "brightness" } ], "proactivelyReportable": true, "retrievable": true } } ] } ] } }

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

roy-1 avatar image
roy-1 answered

Hello,

I would recommned checking to see if your Lambda function is timing out. Your backend has a maximum of 8 seconds to respond to a Device Discovery request, however the quicker the better.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.