question

LPH avatar image
LPH asked

ask api simulate-skill changing the sessionID since 30th of January even when shouldEndSession is set to false

Asking again, since my previous questions are ignored, noone from amazon replied.

I'm using latest 1.2.0 ask-cli on ubuntu 14.04

Hi, Recently I've noticed that using following scenario does not work. I'm using the same host for request,

1. ask api simulate-skill -t "ask testbot I want to order a pizza" -s [skillid] - l en-US --debug then I get the response from configured instance "What kind of pizza do you want?"

2. ask api simulate-skill -t "ask testbot Medium" -s [skillid] - l en-US --debug then another response is returned, "what type of pizza do you want?"

3. ask api simulate-skill -t "ask testbot Hawaii [skillid] - l en-US --debug

In the response body json I've noticed that sessionID was kept during above request, e.g. amzn1.echo-api.session.59a20b59-6547-44f0-8201-b3ccb83a9d14 After 30th of January sessionID is changing every time I repeat above scenario for each ask api -simulate despite shouldEndSession is set to false.

apiask cli
10 |5000

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

LPH avatar image
LPH answered

Is there anybody from amazon, who could look at it?

10 |5000

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

LPH avatar image
LPH answered

Updated to 1.3.1. That didn't solve the issue. Why sessionID isn't kept?

10 |5000

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

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

When I tried to repro it, I can't see session Id at all:

Here is the command I run in a dialog model skill:

ask api simulate-skill --text "ask city travel to plan a trip" -s amzn1.ask.skill.7cf2d844-15a7-4f6d-b2de-ac215c4995b9 -l en-US --debug -p kaiyinlogin

{

"id": "4fbbd8ca-1de0-4002-94a5-031d2d9944f2",

"status": "IN_PROGRESS"

}

-------------------- Debug Mode --------------------

[2018-06-06T21:42:00.268Z] - DEBUG - SIMULATE-SKILL

request-id: 715032f0-69d2-11e8-8a4a-a71c3efa6183

POST https://api.amazonalexa.com/v1/skills/amzn1.ask.skill.7cf2d844-15a7-4f6d-b2de-ac215c4995b9/simulations

status code: 200 OK

Request headers: {"User-Agent":"ask-cli/1.3.1 Node/v10.1.0","Authorization":"Atza|IwEBIIbL78gx44-w7PeX4qieXCQbSk5kDW2OqykQ7ROUwGBoAkMTzpH3DNIEwIceNPncr2HeUDOoRLXC9ZWi3E80U4ft_pMELDN5rCsP1GEow2YK-5sU4Fztkj4p4acBvYg5DOUmelkelC5W6wwf6QaPnRZ3F-keSLipxqjCW-DintmSgjN1GFJvA90LYIzpTamLJ9mBsq7HF9DgYkaJzbRRWMAY_7gDeF2p8NiGAlChKyP37HF_0lAVBpaY7VXuuCj7KEZQQrTaytuqLiXpps_UrYf_fTBfhfY3fu7Tj1Iqzh-Beba9_jBU-4o88_A-awzAHU4oALG4R5_WjE5YfbPIWULmZ4cLqI79-xUYa56CJy5qN-D7tCd4M3E3aj4SYOxJYpF7br55YReZmH72i3fgmVA7OIoudXGB0NP8ygbCxvqOEOKbERlx4zU7lBB045Ev4h_HZkIOrb7KjjCONVMIeI8BhDPJPLYO2ezwd6HmOJtguKg6yWa2tleX7RYKivItBLoyNt7maXKeVP1LlElSB5X6MK4fiRZfw6h0fKBs5BxG-j5tP7eOaIuFcTyt60dQPRpMnjA625Pbnm8G0jvZl6lw_Ya7XtsrUmmpsmvOeve8K1vPXUCLauyCvi647J5l3dc","accept":"application/json","content-type":"application/json","content-length":82}

Request body: {"input":{"content":"ask city travel to plan a trip"},"device":{"locale":"en-US"}}

Response headers: {"server":"Server","date":"Wed, 06 Jun 2018 21:42:00 GMT","content-type":"application/json","content-length":"68","connection":"close","x-amzn-requestid":"715032f0-69d2-11e8-8a4a-a71c3efa6183","x-amz-date":"Wed, 06 Jun 2018 21:42:00 GMT","vary":"Accept-Encoding,User-Agent"}

Response body: {"id":"4fbbd8ca-1de0-4002-94a5-031d2d9944f2","status":"IN_PROGRESS"}

Can you copy/paste the response you get when you run your command?

10 |5000

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

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

my ask --version is 1.3.1

10 |5000

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