Session data being mixed across users

amazon-alexa

#1

Hi,

We’re trying out jovo for our alexa skill, but have found that if we have concurrent users the session data / responses are being mixed up. So user A sends a request, user B sends a request, and user A and user B get the response for user A. Based on our own application logs, the response seems to be fine, but alexa seems to be getting the wrong response via jovo webhook. We confirmed the alexa session id is unique per user / device.

Thank you!


#2

Welcome to the Jovo Community, @mcurrier :tada:

A few questions:

  • Are you storing any data in global variables?
  • Does this only happen with the Jovo Webhook (caution: only recommended for local prototyping), or also when you’re hosting it, e.g. on AWS Lambda
  • To further help with debugging, could you send request and response JSONs from when this is happening?

#3

Hi @jan, thanks for your reply! We moved it to AWS lambda, and it seems the problem went away (at least so far so good). Is this a known limitation of using the webhook (even if just for local prototyping)?

Thanks!