Skip to content

Debug Logs should show failed URL #167

@adamchasetaylor

Description

@adamchasetaylor

When uploading an asset, I noticed that the deployment was failing. I tried to check the debug logs and noticed that the URL is not exposed.

To duplicate:

twilio serverless:init
add in a large asset (above 25MB) in the assets folder
twilio serverless:deploy --force -l debug

⠇ Creating 1 Assets
⠙ Uploading 1 Assets
twilio-serverless-api:assets { HTTPError: Response code 413 (Request Entity Too Large)
twilio-serverless-api:assets at /Users/adtaylor/.twilio-cli/node_modules/twilio-run/node_modules/@twilio-labs/serverless-api/dist/api/assets.js:127:23
twilio-serverless-api:assets at Generator.throw ()
twilio-serverless-api:assets at rejected (/Users/adtaylor/.twilio-cli/node_modules/twilio-run/node_modules/@twilio-labs/serverless-api/dist/api/assets.js:7:65)
twilio-serverless-api:assets at process._tickCallback (internal/process/next_tick.js:68:7) name: 'HTTPError', code: undefined } +269ms
twilio-run:deploy Error: Failed to upload Asset /hold.mp3
twilio-run:deploy at /Users/adtaylor/.twilio-cli/node_modules/twilio-run/node_modules/@twilio-labs/serverless-api/dist/api/assets.js:128:19
twilio-run:deploy at Generator.throw ()
twilio-run:deploy at rejected (/Users/adtaylor/.twilio-cli/node_modules/twilio-run/node_modules/@twilio-labs/serverless-api/dist/api/assets.js:7:65)

Expectation:

I would see that the error code was being thrown for the serverless-upload url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions