Skip to content
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

Error on ask deploy #441

Closed
PabloLerma opened this issue Sep 13, 2022 · 3 comments
Closed

Error on ask deploy #441

PabloLerma opened this issue Sep 13, 2022 · 3 comments
Labels
Bug Status: Wait Response Will close the issue in 7 days if no response for the thread

Comments

@PabloLerma
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ x ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request 
[ ] Other... Please describe: 

Expected Behavior

ask deploy to configure AWS infra and deploy the skill

Current Behavior

I'm getting an error running ask deploy

CLI Snapshot
If applicable, add screenshots to help explain your problem.
image

Steps to Reproduce (for bugs)

  • ask new --template-url https://github.com/alexa-samples/skill-sample-nodejs-fact.git - Default setup
  • cd lamdba & yarn install & cd ..
  • ask deploy

Possible Solution

I don't know but ask deploy should prompt better error info or not error at all for basic Skill templates.

Your Environment and Context

  • ask-cli version: 2.28.0
  • Operating System and version: macOS Monterrey 12.5.1
  • Node.js version used for development: v15.12.0
  • NPM version used for development: I use yarn 1.22.10
@doiron
Copy link
Contributor

doiron commented Sep 23, 2022

That seems to be an error reported back by the SMAPI service call. Do you happen to see a Skill Id after running the last ask deploy command? did it created a Skill in the Developer console portal? You can also see your full list of skills by running ask smapi list-skills-for-vendor

@doiron doiron added the Bug label Sep 23, 2022
@tydonelson tydonelson added the Status: Wait Response Will close the issue in 7 days if no response for the thread label Oct 4, 2022
@PabloLerma
Copy link
Author

Hey @doiron ! Thanks for helping!

Sadly no, the output that I get after running ask deploy is the same one as you can see on the screenshot, just "message": "Required parameter(s) missing in the request."

Running with ask deploy --debug I can see the following requests:

  • GET_NPM_REGISTRY: 200 OK
  • CREATE-UPLOAD: 200 OK
  • UPLOAD-SKILL-PACKAGE: 200 OK
  • IMPORT-PACKAGE: 400 Bad Request (POST https://api.amazonalexa.com/v1/skills/imports)

Running ask smapi list-skills-for-vendor returns:

[Error]: {
  "message": "Required parameter vendorId was null or undefined when calling callListSkillsForVendorV1.",
  "stack": ...stacktrace...,
  "detail": {}
}

@PabloLerma
Copy link
Author

Never mind, I had issues with ask configure and I thought I had it properly configured but I didn't sign in properly on AWS developer account hence I didn't have a venderId. Going to https://developer.amazon.com/mycid.html, configuring my account and running ask configure again fixed ask deploy. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Status: Wait Response Will close the issue in 7 days if no response for the thread
Projects
None yet
Development

No branches or pull requests

3 participants