aws-amplify / aws-amplify/amplify-cli

unexpected error message prefixes `Name: Error : Message: File at path: ...`

Open
#11,119 0 comments 0 reactions 0 assignees View on GitHub
bug p2 platform
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### Before opening, please confirm:

- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/dev/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

### How did you install the Amplify CLI?

pnpm

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

18

### Amplify CLI Version

10.2.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.

n/a

### Amplify Categories

Not applicable

### Amplify Commands

Not applicable

### Describe the bug

From the issue described here https://github.com/aws-amplify/amplify-cli/issues/11117, I am filing this to track the error message prefix issue separately. Sometimes we are presented with errors that unexpectedly have multiple prefixes

```
Name: Error : Message: File at path: '/Users/josef/path/to/myamplifyproject/amplify/backend/amplify-meta.json' does not exist
```

```
Error downloading #current-cloud-backend.zip from deployment bucket: amplify-9071-dev-152757-deployment, the error is: The specified key does not exist.
```

Where other messages have a single prefix

```
🛑 The following resources failed to deploy:
```

```
🛑 An error occurred during the push operation:
```

### Expected behavior

Errors are presented with a unified style and single prefix (if necessary)

if running `amplify status`

```
🛑 Error running "amplify status"
File at path: '/Users/josef/path/to/myamplifyproject/amplify/backend/amplify-meta.json' does not exist
```

### Reproduction steps

follow steps from https://github.com/aws-amplify/amplify-cli/issues/11117

### GraphQL schema(s)

```graphql
# Put schemas below this line

```

### Project Identifier

_No response_

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by following the reproduction steps from issue #11117 and compare the error output from `amplify status` with the other examples in this report. Trace where the prefixes are added; done means errors use a unified style with at most one prefix, matching the expected `amplify status` output.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.