-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious error when providing local path to icons #251
Comments
@conman124 try putting images in the skill-package/assets/images folder as specified in the skill package format: and using a url similar to: file://assets/images/en-US_smallIcon.png |
Got the same error:
I'm willing to try any other suggestions. |
This comment has been minimized.
This comment has been minimized.
@conman124
|
@kakhaUrigashvili I would prefer to only use
I am currently blocked on this issue, so I'll see if I can fix the issue in the next few days. The three possible fixes I can think of:
I will be happy to submit my changes as a PR if you are interested. |
I've tried a few things to make it work and I can't quite get anything working well. I suppose I'm not really blocked because I can just upload my icons to an S3 bucket and point to them. However, I do think that ask-cli should support skill icons out of the box (no extra scripting required). |
@conman124 seems like the root cause is that import skill package api and update manifest api have inconsistent validations for icon urls.
I notice this error happens only the first deploy when we don't have lambda url. I think there is an easy fix. instead of uploading skill.json from the file system, we can first call smapi get manifest api. Looks like after upload skill package urls are transformed to something like this: you can see this by calling So instead of calling We call get skill manifest api, update the lambda url and, call update skill manifest api. @RonWang do you have any concern about the solution? |
@conman124 I have opened a PR #272 |
@conman124 We just released v2.14.0 which contains the fix of your issue. We replace the update-manifest call with the skillPackage update-package call to avoid the inter-operable issue between SMAPI and SkillPackage. The update will be longer but not much, as skillPackage update is smart when InteractionModel is not changing thus should be skipped. Close this issue accordingly. |
I'm submitting a...
Not sure if this is a bug or if I'm requesting a new feature
When I run
ask deploy
whenskill.json
includes asmallIconUri
with a local path (file://assets/blah.png
), it completes successfully, and the icon gets uploaded correctly when viewing the skill in the web console, but I get the following errors:Expected Behavior
There should be no error if the file exists. If the files do not exist, an error would be expected.
Current Behavior
There is an error even though the icon exists and gets properly uploaded to the web console.
Steps to Reproduce (for bugs)
skill.json:
Possible Solution
Not sure if it's an error on the command line side or smapi. It seems like it might be from smapi because I can't seem to find anything in ask-cli about it.
Your Environment and Context
The text was updated successfully, but these errors were encountered: