You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/backend-deployer/src/cdk_error_mapper.test.ts
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -163,10 +163,10 @@ const testErrorMappings = [
163
163
expectedDownstreamErrorMessage: undefined,
164
164
},
165
165
{
166
-
errorMessage: `[31m some-stack failed: The stack named some-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: The code contains one or more errors. (Service: AppSync, Status Code: 400, Request ID: 12345) (RequestToken: 123, HandlerErrorCode: GeneralServiceException), Embedded stack <escaped ARN> was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [resource1, resource2]. [39m`,
166
+
errorMessage: `[31m some-stack failed: The stack named some-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: Some amazing error message (Service: AppSync, Status Code: 400, Request ID: 12345) (RequestToken: 123, HandlerErrorCode: GeneralServiceException), Embedded stack <escaped ARN> was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [resource1, resource2]. [39m`,
167
167
expectedTopLevelErrorMessage: 'The CloudFormation deployment has failed.',
168
168
errorName: 'CloudFormationDeploymentError',
169
-
expectedDownstreamErrorMessage: `The stack named some-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: The code contains one or more errors. (Service: AppSync, Status Code: 400, Request ID: 12345) (RequestToken: 123, HandlerErrorCode: GeneralServiceException), Embedded stack <escaped ARN> was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [resource1, resource2]. [39m`,
169
+
expectedDownstreamErrorMessage: `The stack named some-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: Some amazing error message (Service: AppSync, Status Code: 400, Request ID: 12345) (RequestToken: 123, HandlerErrorCode: GeneralServiceException), Embedded stack <escaped ARN> was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [resource1, resource2]. [39m`,
170
170
},
171
171
{
172
172
errorMessage: `[31m some-stack failed: The stack named some-stack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE`,
@@ -406,6 +406,22 @@ npm error A complete log of this run can be found in: /home/some-path/.npm/_logs
406
406
errorName: 'AccessDeniedError',
407
407
expectedDownstreamErrorMessage: undefined,
408
408
},
409
+
{
410
+
errorMessage: `amplify-stack-user-sandbox failed: BadRequestException: The code contains one or more errors.`,
411
+
expectedTopLevelErrorMessage:
412
+
'A custom resolver used in your defineData contains one or more errors',
413
+
errorName: 'AppSyncResolverSyntaxError',
414
+
expectedDownstreamErrorMessage:
415
+
'amplify-stack-user-sandbox failed: BadRequestException: The code contains one or more errors.',
416
+
},
417
+
{
418
+
errorMessage: `Deployment failed: Error: The stack named amplify-stack-user-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: The code contains one or more errors. (Service: AppSync, Status Code: 400,...`,
419
+
expectedTopLevelErrorMessage:
420
+
'A custom resolver used in your defineData contains one or more errors',
421
+
errorName: 'AppSyncResolverSyntaxError',
422
+
expectedDownstreamErrorMessage:
423
+
'Deployment failed: Error: The stack named amplify-stack-user-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: The code contains one or more errors. (Service: AppSync, Status Code: 400,...',
424
+
},
409
425
{
410
426
errorMessage: `User: some:great:user is not authorized to perform: appsync:StartSchemaCreation on resource: arn:aws:appsync:us-east-1:235494812930:/v1/api/myApi`,
0 commit comments