alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 736 forks source link

`AlexaHouseholdListEvent.ItemsCreated` only ever provides a single ItemId #725

Open jonnyreeves opened 1 year ago

jonnyreeves commented 1 year ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Expected Behavior

When telling alexa to add multiple items to a list (eg: 'Alexa add eggs and ham to shopping list'), the AlexaHouseholdListEvent.ItemsCreated event received by the custom skill should contain 2 itemId's in the payload's listItemIds array

Current Behavior

Only a list listItemId is provided, however multiple items appear in the Alexa App's view of the shopping list.

Possible Solution

Steps to Reproduce (for bugs)

  1. Setup an Alexa skill that listens to the AlexaHouseholdListEvent.ItemsCreated request type
  2. Tell alexa 'Alexa, add eggs and ham to shopping list'
  3. Observe that your skills' code only recieved a single listItemId in the request payload's listItemIds array.
  4. Observe that your Alexa app shows both 'eggs' and 'ham' as entries in your shopping list.

Context

This is a correctness issue with no obvious workaround.

Your Environment

Node.js and NPM Info

doiron commented 1 year ago

thanks for reporting this issue. I have not had a chance to attempt to reproduce this issue yet. However, could you confirm if you are getting two events one for "eggs" and a second one for "ham", or, just the one event overall?

jonnyreeves commented 1 year ago

Just the one event, hence the data loss.

On Tue, 22 Nov 2022, 03:53 Mario, @.***> wrote:

thanks for reporting this issue. I have not had a chance to attempt to reproduce this issue yet. However, could you confirm if you are getting two events one for "eggs" and a second one for "ham", or, just the one event overall?

— Reply to this email directly, view it on GitHub https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/725#issuecomment-1323003987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQ36N2WR4QBNBK3IQKVXTWJQ7UJANCNFSM6AAAAAASFPMIQU . You are receiving this because you authored the thread.Message ID: @.***>