question

newuser-4417366c-a86e-4e2b-90ed-913b99ffa9a8 avatar image

Functional Test returning error for CanfulFillIntentRequest whereas Manual JSON tests work

skill id: amzn1.ask.skill.427849eb-fa55-4af7-8bbc-6adc626d806c

Here is the response JSON from Manual JSON test.

{ "status": "SUCCESSFUL", "result": { "skillExecutionInfo": { "invocationRequest": { "endpoint": "arn:aws:lambda:us-east-1:xxxxxxx:function:xxxxxxxx", "body": { "session": { "new": true, "sessionId": "amzn1.echo-api.session.8f9f2be2-f000-4092-941d-b9fb6863bfe5", "application": { "applicationId": "amzn1.ask.skill.xxxxxx-fa55-4af7-8bbc-6adc626d806c" }, "attributes": { "key": "string value" } }, "request": { "type": "CanFulfillIntentRequest", "requestId": "amzn1.echo-api.request.9d287c01-924f-4881-ba2c-a5ec358ef63b", "intent": { "name": "GetMenuIntent", "slots": { "type": { "name": "type", "value": "Lunch" }, "day": { "name": "day", "value": "august twenty fifth twenty fifteen" } } }, "locale": "en-US", "timestamp": "2017-10-03T22:02:29Z" }, "context": { "AudioPlayer": { "playerActivity": "IDLE" }, "System": { "application": { "applicationId": "amzn1.ask.skill.427849eb-fa55-4af7-8bbc-6adc626d806c" }, "user": { "userId": "amzn1.ask.account.AFLSD3YHCHWFPV7PI4I7RTUIT4MDE6RQ4E7NAQW46VFGBGEBCQ4B5SULWEPZMOGPRPED4HP4ZL4HH65R4HJSNLP2MK2YLEWV7Q74VCXZT2B4XBUQCSSUP6AO3RKUHVFQ3QR6EOZQOKCZ4PCXZIAOSDMB23FOHGHATNHGKI4F6NRP47YLKVLW4B7VQ66652BG2P7NZ3QYLOOY", "accessToken": "RESIDENT_QCHK/8g6PwuEjddIFNVj7Je09P/Kx1ulzs0HdUKxCVk=" }, "device": { "supportedInterfaces": {} } } }, "version": "1.0" } }, "invocationResponse": { "body": { "version": "1.0", "sessionAttributes": { "key": "string value" }, "userAgent": "ask-java/2.9.2 Java/1.8.0_181", "response": { "canFulfillIntent": { "canFulfill": "YES", "slots": { "day": { "canUnderstand": "YES", "canFulfill": "YES" } } } } } }, "metrics": { "skillExecutionTimeInMilliseconds": 39 } }, "error": null } }

However, Functional test fails with error

This skill implements the Alexa CanFulfillIntentRequest interface, but the CanFulfillIntentRequest interface call’s response is blank or not in the defined structure. We found your endpoint to respond with unsupported format for GetMenuInten. Please implement the CanFulfillIntentRequest interface as outlined in the our documentation. The skill should respond properly to requests without a UserId present, without session information present, and should respond to a CanFulfillIntentRequest call for the skill’s intents included within the interaction model. More information about CanFulfillIntentRequest can be found in our documentation. Opting out of the Alexa CanFulfillIntentRequest interface can also resolve this issue.

Error: Empty or No Response from endpoint, Intent Name: GetMenuIntent, Slot Names: type, day, Slot Values: Lunch, last year

alexa skills kitjavacanfulfillintentrequest
10 |5000

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

Alin Panaitiu avatar image
Alin Panaitiu answered
I’m having the same exact issue on skill amzn1.ask.skill.778ceabb-38ef-47d5-8927-f57cff77bf2d

Can someone from Amazon look into this? There is no exception thrown from the code, the response is always returned and the Functional Test errors don’t tell us what exactly is wrong with the response. They tell us that the response is empty which I can’t reproduce with a manual JSON test.

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,

Please see the following link for a sample JSON response to a CanFulfillIntentRequest:

https://developer.amazon.com/docs/custom-skills/understand-name-free-interaction-for-custom-skills.html#sample-intent-response

10 |5000

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

Piyush Hari avatar image
Piyush Hari answered

I am facing the same issue. Any pointers?

1 comment
10 |5000

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

Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra commented ·

Hi @Piyush Hari and thanks for your message.

Have you checked the documentation here? Can you please share the complete error message you are getting and also the request that you are using to test the CanFulfillIntentRequest as well as your skill id?

Regards,
Barry

0 Likes 0 ·