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

Cannot set headers after they are sent to the client #13731

Closed
2 tasks done
simongillett opened this issue Apr 22, 2024 · 1 comment
Closed
2 tasks done

Cannot set headers after they are sent to the client #13731

simongillett opened this issue Apr 22, 2024 · 1 comment
Labels
pending-triage Issue is pending triage

Comments

@simongillett
Copy link

How did you install the Amplify CLI?

npm

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

v21.7.3

Amplify CLI Version

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

no

Describe the bug

Screenshot 2024-04-22 at 13 47 39

Expected behavior

amplify pull --appId dnr8l1iz62f3w --envName prod

Reproduction steps

  1. amplify pull --appId dnr8l1iz62f3w --envName prod
  2. Opening link: https://us-east-1.admin.amplifyapp.com/admin/dnr8l1iz62f3w/prod/verify/?loginVersion=1
    ⠼ Confirm login in the browser or manually paste in your CLI login key:
    [pasting CLI]
  3. ? Select the authentication method you want to use: (Use arrow keys)
    ❯ Amplify Studio
    AWS profile
    AWS access keys
  4. fail and error reporting

Project Identifier

{
"usageDataConfig": {
"installationUuid": "df791822-916a-480a-b2ca-fc902ac781f2",
"isUsageTrackingEnabled": true
}
}

Log output

# Put your logs below this line
2024-04-22T04:40:26.819Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:40:26.876Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:40:27.792Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T04:40:44.061Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:40:44.114Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:40:50.835Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T04:41:56.651Z|info : amplify env core pull {"restore":true,"yes":false}
2024-04-22T04:41:57.380Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T04:42:23.788Z|info : amplify env core pull prod {"restore":true,"yes":false}
2024-04-22T04:42:24.449Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T04:43:25.182Z|info : amplify status core  {"yes":false}
2024-04-22T04:43:25.233Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:43:26.601Z|error : No Amplify backend project files detected within this folder.
ProjectNotInitializedError: No Amplify backend project files detected within this folder.
2024-04-22T04:44:00.265Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","force":true,"yes":false}
2024-04-22T04:44:00.318Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:44:01.135Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T04:44:15.301Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","force":true,"yes":false}
2024-04-22T04:44:15.355Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:45:42.301Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T04:46:53.222Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:46:53.274Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:47:10.850Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T04:50:06.387Z|info : amplify env core checkout prod restore 
2024-04-22T04:50:07.202Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T04:50:23.616Z|info : amplify env core checkout prod {"restore":true,"yes":false}
2024-04-22T04:50:24.282Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T04:51:25.712Z|info : amplify env core pull prod {"restore":true,"yes":false}
2024-04-22T04:51:26.446Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T04:51:50.917Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:51:50.970Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:51:51.798Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T04:52:02.921Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:52:02.976Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:52:23.859Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig([null])
2024-04-22T04:52:23.958Z|error : Failed to get profile credentials
ProfileConfigurationError: Failed to get profile credentials
2024-04-22T04:52:37.132Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:52:37.186Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:52:49.124Z|error : Failed to get AWS credentials
ProfileConfigurationError: Failed to get AWS credentials
2024-04-22T04:52:58.877Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T04:52:58.928Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T04:53:08.557Z|error : Invalid config undefined
ConfigurationError: Invalid config undefined
2024-04-22T05:06:01.271Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","restore":true,"yes":false}
2024-04-22T05:06:01.322Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T05:06:15.192Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig([null])
2024-04-22T05:06:15.343Z|error : Failed to get profile credentials
ProfileConfigurationError: Failed to get profile credentials
2024-04-22T05:09:53.120Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T05:09:53.170Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T05:10:05.373Z|error : Creating a nested amplify project is not supported
NestedProjectInitError: Creating a nested amplify project is not supported
2024-04-22T05:10:15.746Z|info : amplify configure core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T05:10:15.797Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T07:07:35.162Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T07:07:35.212Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T07:07:54.197Z|error : Creating a nested amplify project is not supported
NestedProjectInitError: Creating a nested amplify project is not supported
2024-04-22T07:08:32.097Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T07:08:32.148Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T07:08:48.705Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T07:09:23.576Z|info : amplify diagnose core  {"send-report":true,"yes":false}
2024-04-22T07:09:23.625Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T07:12:40.921Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T07:12:40.979Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T07:12:45.653Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T07:13:15.220Z|info : amplify diagnose core  {"send-report":true,"yes":false}
2024-04-22T07:13:15.273Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T14:06:18.580Z|info : amplify status core  {"yes":false}
2024-04-22T14:06:18.633Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T14:06:20.123Z|error : No Amplify backend project files detected within this folder.
ProjectNotInitializedError: No Amplify backend project files detected within this folder.
2024-04-22T14:12:01.148Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T14:12:01.201Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T14:12:02.067Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T14:12:14.689Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T14:12:14.749Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T14:12:29.713Z|error : Failed to get AWS credentials
ProfileConfigurationError: Failed to get AWS credentials
2024-04-22T14:15:26.320Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T14:15:26.378Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T14:15:36.424Z|error : Failed to get AWS credentials
ProfileConfigurationError: Failed to get AWS credentials
2024-04-22T17:21:12.418Z|info : amplify env core pull {"appId":"[***]z62f3w","envName":"[***]od","force":true,"yes":false}
2024-04-22T17:21:13.123Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T17:21:24.651Z|info : amplify init core  
2024-04-22T17:21:24.704Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:21:37.866Z|error : EACCES: permission denied, open '/Users/sgg/Applications/aitium_v2/amplify/.config/local-env-info.json'
FileSystemPermissionsError: EACCES: permission denied, open '/Users/sgg/Applications/aitium_v2/amplify/.config/local-env-info.json'
2024-04-22T17:23:47.436Z|info : amplify env core pull {"appId":"[***]z62f3w","envName":"[***]od","force":true,"yes":false}
2024-04-22T17:23:48.374Z|error : Current environment cannot be determined.
EnvironmentNotInitializedError: Current environment cannot be determined.
2024-04-22T17:30:04.888Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:30:04.947Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:30:16.285Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T17:30:28.803Z|info : amplify configure core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:30:28.860Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:30:36.693Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T17:31:04.254Z|info : amplify configure core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:31:04.311Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:31:11.975Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T17:36:24.776Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:36:24.835Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:36:25.777Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T17:37:12.203Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:37:12.260Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:38:01.086Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T17:40:39.616Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:40:39.676Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:40:58.242Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T17:41:31.608Z|info : amplify diagnose core  {"send-report":true,"yes":false}
2024-04-22T17:41:31.666Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:46:10.434Z|info : amplify version core  {"version":true,"yes":false}
2024-04-22T17:49:13.260Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:49:13.320Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:49:14.267Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T17:49:28.252Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T17:49:28.312Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T17:50:32.007Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig([null])
2024-04-22T17:50:32.174Z|error : EACCES: permission denied, rmdir '/Users/sgg/Applications/aitium_v2/amplify/#current-cloud-backend'
FileSystemPermissionsError: EACCES: permission denied, rmdir '/Users/sgg/Applications/aitium_v2/amplify/#current-cloud-backend'
2024-04-22T17:53:26.546Z|info : amplify diagnose core  {"send-report":true,"yes":false}
2024-04-22T17:53:26.607Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:10:01.081Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:10:01.146Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:10:02.067Z|error : Creating a nested amplify project is not supported
NestedProjectInitError: Creating a nested amplify project is not supported
2024-04-22T18:10:14.575Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:10:14.634Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:10:15.549Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T18:10:26.689Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:10:26.746Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:10:27.739Z|error : EACCES: permission denied, mkdir '/Users/sgg/Applications/aitium_v2/amplify/#current-cloud-backend'
FileSystemPermissionsError: EACCES: permission denied, mkdir '/Users/sgg/Applications/aitium_v2/amplify/#current-cloud-backend'
2024-04-22T18:12:06.900Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:12:06.961Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:12:07.889Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T18:12:55.679Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:12:55.738Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:13:34.289Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T18:13:45.916Z|info : amplify configure core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:13:45.973Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:13:53.377Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T18:14:08.624Z|info : amplify configure core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:14:08.683Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:14:54.158Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:14:54.217Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:14:55.135Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T18:15:04.565Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:15:04.623Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:15:14.334Z|error : Cannot set headers after they are sent to the client
UnknownNodeJSFault: Cannot set headers after they are sent to the client
2024-04-22T18:16:53.195Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:16:53.258Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:16:54.272Z|error : Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
DirectoryAlreadyExistsError: Backup folder at /Users/sgg/Applications/aitium_v2/amplify-backup already exists, remove the folder and retry the operation.
2024-04-22T18:17:02.799Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:17:02.862Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:17:29.576Z|error : Invalid config undefined
ConfigurationError: Invalid config undefined
2024-04-22T18:18:24.854Z|info : amplify pull core  {"appId":"[***]z62f3w","envName":"[***]od","yes":false}
2024-04-22T18:18:24.913Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:18:36.519Z|error : Invalid config undefined
ConfigurationError: Invalid config undefined
2024-04-22T18:21:49.086Z|info : amplify init core  {"appId":"[***]z62f3w","yes":false}
2024-04-22T18:21:49.145Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-04-22T18:22:03.094Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["aitium-prod"])
2024-04-22T18:22:03.100Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2024-04-22T18:22:03.101Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["aitium-prod"])
2024-04-22T18:22:03.121Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2024-04-22T18:22:03.309Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getApp([{"appId":"[***]z62f3w"}])
2024-04-22T18:22:03.463Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]z62f3w","environmentName":"[***]ev"}])
2024-04-22T18:22:03.607Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]z62f3w","environmentName":"[***]ev"}])
NotFoundException: BackendEnvironment dev does not exist.
2024-04-22T18:22:03.609Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]z62f3w","environmentName":"[***]ev","stackName":"[***]ify-[***]umv2-[***]ev-[***]203","deploymentArtifacts":"amplify-aitiumv2-dev-142203-deployment"}])
2024-04-22T18:22:03.767Z|info : amplify-provider-awscloudformation.aws-cfn.cfnModel.createStack([{"StackName":"[***]ify-[***]umv2-[***]ev-[***]203","Capabilities":["CAPABILITY_NAMED_IAM","CAPABILITY_AUTO_EXPAND"],"TemplateBody":"{\n  \"AWSTemplateFormatVersion\": \"2010-09-09\",\n  \"Description\": \"{\\\"createdOn\\\":\\\"Mac\\\",\\\"createdBy\\\":\\\"Amplify\\\",\\\"createdWith\\\":\\\"12.10.1\\\",\\\"stackType\\\":\\\"root\\\",\\\"metadata\\\":{}}\",\n  \"Parameters\": {\n    \"[***]cketName\": {\n      \"Description\": \"Name of the common deployment bucket provided by the parent stack\",\n      \"Type\": \"String\",\n      \"Default\": \"DeploymentBucket\"\n    },\n    \"[***]eName\": {\n      \"Type\": \"String\",\n      \"Default\": \"AuthRoleName\"\n    },\n    \"[***]leName\": {\n      \"Type\": \"String\",\n      \"Default\": \"UnauthRoleName\"\n    }\n  },\n  \"Resources\": {\n    \"DeploymentBucket\": {\n      \"Type\": \"AWS::S3::Bucket\",\n      \"DeletionPolicy\": \"Retain\",\n      \"Properties\": {\n        \"BucketName\": {\n          \"Ref\": \"DeploymentBucketName\"\n        },\n        \"BucketEncryption\": {\n          \"ServerSideEncryptionConfiguration\": [\n            {\n              \"ServerSideEncryptionByDefault\": {\n                \"SSEAlgorithm\": \"AES256\"\n              }\n            }\n          ]\n        }\n      }\n    },\n    \"AuthRole\": {\n      \"Type\": \"AWS::IAM::Role\",\n      \"Properties\": {\n        \"RoleName\": {\n          \"Ref\": \"AuthRoleName\"\n        },\n        \"AssumeRolePolicyDocument\": {\n          \"Version\": \"2012-10-17\",\n          \"Statement\": [\n            {\n              \"Sid\": \"\",\n              \"Effect\": \"Deny\",\n              \"Principal\": {\n                \"Federated\": \"cognito-identity.amazonaws.com\"\n              },\n              \"Action\": \"sts:AssumeRoleWithWebIdentity\"\n            }\n          ]\n        }\n      }\n    },\n    \"UnauthRole\": {\n      \"Type\": \"AWS::IAM::Role\",\n      \"Properties\": {\n        \"RoleName\": {\n          \"Ref\": \"UnauthRoleName\"\n        },\n        \"AssumeRolePolicyDocument\": {\n          \"Version\": \"2012-10-17\",\n          \"Statement\": [\n            {\n              \"Sid\": \"\",\n              \"Effect\": \"Deny\",\n              \"Principal\": {\n                \"Federated\": \"cognito-identity.amazonaws.com\"\n              },\n              \"Action\": \"sts:AssumeRoleWithWebIdentity\"\n            }\n          ]\n        }\n      }\n    }\n  },\n  \"Outputs\": {\n    \"Region\": {\n      \"Description\": \"CloudFormation provider root stack Region\",\n      \"Value\": {\n        \"Ref\": \"AWS::Region\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-Region\"\n        }\n      }\n    },\n    \"StackName\": {\n      \"Description\": \"CloudFormation provider root stack ID\",\n      \"Value\": {\n        \"Ref\": \"AWS::StackName\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-StackName\"\n        }\n      }\n    },\n    \"StackId\": {\n      \"Description\": \"CloudFormation provider root stack name\",\n      \"Value\": {\n        \"Ref\": \"AWS::StackId\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-StackId\"\n        }\n      }\n    },\n    \"DeploymentBucketName\": {\n      \"Description\": \"CloudFormation provider root stack deployment bucket name\",\n      \"Value\": {\n        \"Ref\": \"DeploymentBucketName\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-DeploymentBucketName\"\n        }\n      }\n    },\n    \"AuthRoleArn\": {\n      \"Value\": {\n        \"Fn::GetAtt\": [\n          \"AuthRole\",\n          \"Arn\"\n        ]\n      }\n    },\n    \"UnauthRoleArn\": {\n      \"Value\": {\n        \"Fn::GetAtt\": [\n          \"UnauthRole\",\n          \"Arn\"\n        ]\n      }\n    },\n    \"AuthRoleName\": {\n      \"Value\": {\n        \"Ref\": \"AuthRole\"\n      }\n    },\n    \"UnauthRoleName\": {\n      \"Value\": {\n        \"Ref\": \"UnauthRole\"\n      }\n    }\n  }\n}","Parameters":[{"ParameterKey":"DeploymentBucketName","ParameterValue":"amplify-aitiumv2-dev-142203-deployment"},{"ParameterKey":"AuthRoleName","ParameterValue":"amplify-aitiumv2-dev-142203-authRole"},{"ParameterKey":"UnauthRoleName","ParameterValue":"amplify-aitiumv2-dev-142203-unauthRole"}],"Tags":[{"Key":"[***]tack","Value":"dev"},{"Key":"[***]ication","Value":"aitiumv2"}]}])
2024-04-22T18:22:04.085Z|info : amplify-provider-awscloudformation.aws-cfn.cfnModel.createStack([{"StackName":"[***]ify-[***]umv2-[***]ev-[***]203","Capabilities":["CAPABILITY_NAMED_IAM","CAPABILITY_AUTO_EXPAND"],"TemplateBody":"{\n  \"AWSTemplateFormatVersion\": \"2010-09-09\",\n  \"Description\": \"{\\\"createdOn\\\":\\\"Mac\\\",\\\"createdBy\\\":\\\"Amplify\\\",\\\"createdWith\\\":\\\"12.10.1\\\",\\\"stackType\\\":\\\"root\\\",\\\"metadata\\\":{}}\",\n  \"Parameters\": {\n    \"[***]cketName\": {\n      \"Description\": \"Name of the common deployment bucket provided by the parent stack\",\n      \"Type\": \"String\",\n      \"Default\": \"DeploymentBucket\"\n    },\n    \"[***]eName\": {\n      \"Type\": \"String\",\n      \"Default\": \"AuthRoleName\"\n    },\n    \"[***]leName\": {\n      \"Type\": \"String\",\n      \"Default\": \"UnauthRoleName\"\n    }\n  },\n  \"Resources\": {\n    \"DeploymentBucket\": {\n      \"Type\": \"AWS::S3::Bucket\",\n      \"DeletionPolicy\": \"Retain\",\n      \"Properties\": {\n        \"BucketName\": {\n          \"Ref\": \"DeploymentBucketName\"\n        },\n        \"BucketEncryption\": {\n          \"ServerSideEncryptionConfiguration\": [\n            {\n              \"ServerSideEncryptionByDefault\": {\n                \"SSEAlgorithm\": \"AES256\"\n              }\n            }\n          ]\n        }\n      }\n    },\n    \"AuthRole\": {\n      \"Type\": \"AWS::IAM::Role\",\n      \"Properties\": {\n        \"RoleName\": {\n          \"Ref\": \"AuthRoleName\"\n        },\n        \"AssumeRolePolicyDocument\": {\n          \"Version\": \"2012-10-17\",\n          \"Statement\": [\n            {\n              \"Sid\": \"\",\n              \"Effect\": \"Deny\",\n              \"Principal\": {\n                \"Federated\": \"cognito-identity.amazonaws.com\"\n              },\n              \"Action\": \"sts:AssumeRoleWithWebIdentity\"\n            }\n          ]\n        }\n      }\n    },\n    \"UnauthRole\": {\n      \"Type\": \"AWS::IAM::Role\",\n      \"Properties\": {\n        \"RoleName\": {\n          \"Ref\": \"UnauthRoleName\"\n        },\n        \"AssumeRolePolicyDocument\": {\n          \"Version\": \"2012-10-17\",\n          \"Statement\": [\n            {\n              \"Sid\": \"\",\n              \"Effect\": \"Deny\",\n              \"Principal\": {\n                \"Federated\": \"cognito-identity.amazonaws.com\"\n              },\n              \"Action\": \"sts:AssumeRoleWithWebIdentity\"\n            }\n          ]\n        }\n      }\n    }\n  },\n  \"Outputs\": {\n    \"Region\": {\n      \"Description\": \"CloudFormation provider root stack Region\",\n      \"Value\": {\n        \"Ref\": \"AWS::Region\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-Region\"\n        }\n      }\n    },\n    \"StackName\": {\n      \"Description\": \"CloudFormation provider root stack ID\",\n      \"Value\": {\n        \"Ref\": \"AWS::StackName\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-StackName\"\n        }\n      }\n    },\n    \"StackId\": {\n      \"Description\": \"CloudFormation provider root stack name\",\n      \"Value\": {\n        \"Ref\": \"AWS::StackId\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-StackId\"\n        }\n      }\n    },\n    \"DeploymentBucketName\": {\n      \"Description\": \"CloudFormation provider root stack deployment bucket name\",\n      \"Value\": {\n        \"Ref\": \"DeploymentBucketName\"\n      },\n      \"Export\": {\n        \"Name\": {\n          \"Fn::Sub\": \"${AWS::StackName}-DeploymentBucketName\"\n        }\n      }\n    },\n    \"AuthRoleArn\": {\n      \"Value\": {\n        \"Fn::GetAtt\": [\n          \"AuthRole\",\n          \"Arn\"\n        ]\n      }\n    },\n    \"UnauthRoleArn\": {\n      \"Value\": {\n        \"Fn::GetAtt\": [\n          \"UnauthRole\",\n          \"Arn\"\n        ]\n      }\n    },\n    \"AuthRoleName\": {\n      \"Value\": {\n        \"Ref\": \"AuthRole\"\n      }\n    },\n    \"UnauthRoleName\": {\n      \"Value\": {\n        \"Ref\": \"UnauthRole\"\n      }\n    }\n  }\n}","Parameters":[{"ParameterKey":"DeploymentBucketName","ParameterValue":"amplify-aitiumv2-dev-142203-deployment"},{"ParameterKey":"AuthRoleName","ParameterValue":"amplify-aitiumv2-dev-142203-authRole"},{"ParameterKey":"UnauthRoleName","ParameterValue":"amplify-aitiumv2-dev-142203-unauthRole"}],"Tags":[{"Key":"[***]tack","Value":"dev"},{"Key":"[***]ication","Value":"aitiumv2"}]}])
2024-04-22T18:22:09.096Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]umv2-[***]ev-[***]203"}])
2024-04-22T18:22:09.248Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]61:stack/[***]ify-[***]umv2-[***]ev-[***]203/[***]7ac0-[***]d5-[***]ef-[***]17-[***]f2a5b"}])
2024-04-22T18:22:14.095Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]umv2-[***]ev-[***]203"}])
2024-04-22T18:22:14.194Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]61:stack/[***]ify-[***]umv2-[***]ev-[***]203/[***]7ac0-[***]d5-[***]ef-[***]17-[***]f2a5b"}])
2024-04-22T18:22:24.096Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]umv2-[***]ev-[***]203"}])
2024-04-22T18:22:24.238Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]61:stack/[***]ify-[***]umv2-[***]ev-[***]203/[***]7ac0-[***]d5-[***]ef-[***]17-[***]f2a5b"}])
2024-04-22T18:22:46.420Z|error : 'jsonString' argument missing or empty
UnknownFault: 'jsonString' argument missing or empty
2024-04-22T18:27:42.197Z|info : amplify configure core  
2024-04-22T18:27:42.253Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}

3987f048-c8c8-4418-a88b-75792835381a

Additional information

{
"usageDataConfig": {
"installationUuid": "df791822-916a-480a-b2ca-fc902ac781f2",
"isUsageTrackingEnabled": true
}
}

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@simongillett simongillett added the pending-triage Issue is pending triage label Apr 22, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

1 participant