question

Todd Hoff & Linda Coleman avatar image
Todd Hoff & Linda Coleman asked

Is userid supposed to be set?

Hi, I'm not getting a user id in my launch event. It is running under my developer account. Session looks like: { "new": true, "sessionId": "session1234", "attributes": {}, "user": { "userId": null }, "application": { "applicationId": ... } } Is there something else I need to do?
alexa skills kitdebugging
10 |5000

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

jjaquinta avatar image
jjaquinta answered
Is this being invoked by your Echo? You should be getting a userID if so. I have found, though, that when invoking a Lambda function via the Test option on the console, if you choose the standard "launch intent" data, it has a null UserID. You can just edit that and change it to some value.
10 |5000

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

Todd Hoff & Linda Coleman avatar image
Todd Hoff & Linda Coleman answered
It's definitely being invoked from the echo. I get the expected voice response, but there's no user specified.
10 |5000

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

Greg Crawford avatar image
Greg Crawford answered
I experienced a similar problem and the solution was some magic provided by the AWS supoort team. Perhaps you have the same issue. This thread has the details: https://forums.developer.amazon.com/forums/thread.jspa?messageID=16267㾋
10 |5000

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

Nick Gardner avatar image
Nick Gardner answered
Can you let us know if you are still having this issue? If so, can you please submit a contact us here: https://developer.amazon.com/public/support/contact/contact-us with your application ID and a request ID where this issue occurs? Thanks, Nick
10 |5000

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

Todd Hoff & Linda Coleman avatar image
Todd Hoff & Linda Coleman answered
Thanks, I didn't get the email so I didn't see your response. It does appear to be working now. Thanks!
10 |5000

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