question

horsewin avatar image
horsewin asked

icon image cannot be uploaded with ask-cli

There is a problem to upload icon image when i am going to update public information in Alexa skill by using ask-cli...

When either smallIconUri or largeIconUri is inserted, ask deploy command failed by publishing below error message.

ask deploy -p default
-------------------- Update Skill Project --------------------
[Error]: Building skill schema failed

Does anyone can upload icon file via ask-cli?

alexa skills kitask 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.

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hi, thanks for posting. I am sorry it took a while to get to your question. Are you still facing this issue? I was able to update a skill with an icon using ask-cli. Here is the skill.json for reference:

{
  "manifest": {
    "publishingInformation": {
      "locales": {
        "en-GB": {
          "examplePhrases": [],
          "keywords": [],
          "name": "Sbrubbles",
          "smallIconUri": "https://s3.amazonaws.com/yaddayaddayadda"
        }
      },
      "isAvailableWorldwide": true,
      "distributionCountries": []
    },
    "apis": {
      "custom": {
        "endpoint": {
          "sourceDir": "lambda/custom"
        },
        "interfaces": [
          {
            "type": "RENDER_TEMPLATE"
          }
        ]
      }
    },
    "manifestVersion": "1.0"
  }
}

Is your skill.json similar to that?

Kind regards,

Barry

2 comments
10 |5000

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

nandu avatar image nandu commented ·

I am facing the similar issue when i activate the start beta test vis ask cli..


Call start-beta-test error.

Error code: 400

{
    "violations": [
        {
            "message": "The svg provided in the wordmarkLogo uri null in locale en-US could not be processed. Please check the provided svg and try again."
        }
    ]
}


I am not sure where wordmarklogo comes from . Do you guys have the schema any where to verify the skill manifest ?


0 Likes 0 ·
Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra nandu commented ·

Hello @nandu and sorry it took so long to reply to you.

Are you still facing this issue? If so, can you please share your manifest so I can take a better look?

Regards,
Barry

0 Likes 0 ·
Muneef M avatar image
Muneef M answered

If the image URLs is causing the issue. I found a simple hacky solution for time being.

goto your Alexa skill development portal and select distribution tab, in that upload both small and large icon. ( Do not press save ), and right click on the image and select open image in new tab and copy the image URL. now use this URL in the skill.json

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 ·

Thank you @Muneef M for your suggestion.

You can also upload it to a S3 bucket and copy the URL for the file. Just make sure that the file is publicly available.

Regards,
Barry

0 Likes 0 ·