aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.81k stars 819 forks source link

Display failure message when adding a APNS with incorrect .p12 key #11940

Open ykethan opened 1 year ago

ykethan commented 1 year ago

How did you install the Amplify CLI?

No response

If applicable, what version of Node.js are you using?

No response

Amplify CLI Version

10.7.1

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

none

Describe the bug

When passing in path to the incorrect p12 key and Amplify CLI fails as expected but with the following error.

 Failed to enable the APNS channel

this does not provide the correct reason for failure. The reason for failure is in the report generated by amplify CLI in the error.json file under the downstreamException block containing the message key. For example:

image image

Expected behavior

Expose the error message on CLI

Reproduction steps

  1. Add notifications
  2. select APNS
  3. provide an incorrect p12 key observe error message in CLI and report generated

Project Identifier

6e0e57ade2748b686ffbd2270e6ba6d1

Log output

``` # Put your logs below this line ```

Additional information

No response

Before submitting, please confirm:

josefaidt commented 1 year ago

Hey @ykethan I was able to reproduce this by passing an invalid p12 key. Marking as a bug