question

GetMyDriver avatar image
GetMyDriver asked ·

Fails to load in-skill product ID during ask-cli - AWS Lambda deploy

Skill deployment finished.

Model deployment finished.

Lambda deployment finished.

Lambda function(s) updated:

  [URI] arn:REDACTED-function:ask-custom-Premium_Facts_Live-default

Error(s) found in the deploy setting for the following in-skill product(s):
    (Please restore the missing file or modify skill configuration file .ask/config to fix the deploy setting)
Missing file: [ID] undefined  [FILE] /isps/entitlement/science_pack.json

Invalid in-skill product file: [ID] undefined  [FILE] isps/entitlement/history_pack.json

Invalid in-skill product file: [ID] undefined  [FILE] isps/entitlement/space_pack.json

Invalid in-skill product file: [ID] undefined  [FILE] isps/subscription/all_access.json

Invalid in-skill product file: [ID] undefined  [FILE] isps/entitlement/science_pack.json

No in-skill product to be deployed.

Your skill is now deployed and enabled in the development stage.

Try invoking the skill by saying “Alexa, open {your_skill_invocation_name}” or simulate an invocation via the `ask simulate` command.

alexa skills kitdebuggingask cliisp
1 comment
10 |2000 characters needed characters left characters exceeded

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

Did you manage to solve this? I'm having the exact same issue. Also working off the same github repo.

0 Likes 0 ·
KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered ·

Did you do "ask deploy" after "ask add isp" and configure in the ISP files? If the deploy is successful, you should be able to see .ask/config file under the skill folder and it should have the following:

"deploy_settings": {

"isp": {

"skill_id": "amzn1.ask.skill.b05cfe31-c367-4e24-bbc1-0a5a72cd852b",

"was_cloned": false,

"merge": {

"manifest": {

"apis": {

"custom": {

"endpoint": {

"uri": "arn:aws:lambda:us-east-1:332786946137:function:monetizationCleanUp"

}

}

}

}

},

"in_skill_products": [

{

"deploy_status": "Update",

"filePath": "isps/subscription/fish.json",

"productId": "amzn1.adg.product.16384597-6812-4fcd-af76-04618f80ae2a"

},

{

"deploy_status": "Update",

"filePath": "isps/entitlement/fishentitlement.json",

"productId": "amzn1.adg.product.4b1053ae-7c86-4fbc-a0c8-e2d0bb81d6e6"

}

]

}

}

}

For me the process is, 1) create the skill 2) clone the skillId so that we have local folder of skill 3) within the skill folder, do "ask add isp" 4) configure the ISP files 5) do "ask deploy" to add the ISPs 6) Update other part functions within the Skill (like Lambda). I wouldn't suggest update them all together at one shot.

10 |2000 characters needed characters left characters exceeded

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

RESPONSE // READY avatar image
RESPONSE // READY answered ·

This is probably already solved, but one thing to keep in mind when working with multiple deployment profiles is that in some cases, it may be possible that products are referenced in the default profile config instead of the desired profile. See the config in your .ask folder and add your products to the correct profile.

10 |2000 characters needed characters left characters exceeded

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