alexa / ask-cli

Alexa Skills Kit Command Line Interface
https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-intro.html
Apache License 2.0
163 stars 54 forks source link

Large skill-package files are generating ERR_FR_MAX_BODY_LENGTH_EXCEEDED Request body larger than maxBodyLength limit #480

Closed doiron closed 1 year ago

doiron commented 1 year ago

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: 

Large skill-package files are generating ERR_FR_MAX_BODY_LENGTH_EXCEEDED Request body larger than maxBodyLength limit


==================== Deploy Skill Metadata ====================
Uploading the entire skill package and building the models. Normally it takes a few minutes...
  ✖ Retrieving skill id...
    → [Retrieving skill id...] task stopped polling for status.
  ✖ Retrieving import id...
    → [Retrieving import id...] task stopped polling for status.
  ✖ [Interaction Model] Import model builder task.
    → [Interaction Model] task stopped polling for status.
[Warn]: [Retrieving skill id...] task stopped polling for status.
[Error]: {
  "errorMessage": "The request to https://skill-uploads-prod-na.s3.amazonaws.com/**** failed. Client Error: Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit"

Expected Behavior

should deploy the skill as expected

Current Behavior

it throws an error

CLI Snapshot

==================== Deploy Skill Metadata ====================
Uploading the entire skill package and building the models. Normally it takes a few minutes...
  ✖ Retrieving skill id...
    → [Retrieving skill id...] task stopped polling for status.
  ✖ Retrieving import id...
    → [Retrieving import id...] task stopped polling for status.
  ✖ [Interaction Model] Import model builder task.
    → [Interaction Model] task stopped polling for status.
[Warn]: [Retrieving skill id...] task stopped polling for status.
[Error]: {
  "errorMessage": "The request to https://skill-uploads-prod-na.s3.amazonaws.com/**** failed. Client Error: Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit"

Steps to Reproduce (for bugs)

Possible Solution

Available mitigation:

npm uninstall -g ask-cli
npm install ask-cli@2.29.2

this uses request instead of axios and does not experience this error

Your Environment and Context

doiron commented 1 year ago

just released ask-cli@2.30.3 with the fix see https://www.npmjs.com/package/ask-cli for installation instructions and keep up with the latest versions.