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

CDK Deploy: Cannot invoke "String.contains(java.lang.CharSequence)" because "errorMsg" is null #32741

Closed
1 task
daveharig opened this issue Jan 4, 2025 · 4 comments
Assignees
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@daveharig
Copy link

Describe the bug

After destroying a stack and re deploying it, IAM resource creations fail with internal error:

Resource handler returned message: "Cannot invoke "String.contains(java.lang.CharSequence)" because "errorMsg" is null" (RequestToken: 3578c1be-920b-222a-4c9e-0f3596bce26c, HandlerErrorCode: InternalFailure)

The issue suggests a low-level internal AWS CloudFormation or IAM glitch.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Deploy stack

Current Behavior

After destroying a stack and re deploying it, IAM resource creations fail with internal error:

Resource handler returned message: "Cannot invoke "String.contains(java.lang.CharSequence)" because "errorMsg" is null" (RequestToken: 3578c1be-920b-222a-4c9e-0f3596bce26c, HandlerErrorCode: InternalFailure)

The issue suggests a low-level internal AWS CloudFormation or IAM glitch.

Reproduction Steps

Destroy stack and re deploy it with AWS CDK 2.174.0

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.174.0

Framework Version

2.174.0

Node.js Version

22.4.1

OS

MacOS 15.2

Language

TypeScript

Language Version

5.5.2

Other information

No response

@daveharig daveharig added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 4, 2025
@github-actions github-actions bot added the @aws-cdk/aws-iam Related to AWS Identity and Access Management label Jan 4, 2025
@khushail khushail added needs-reproduction This issue needs reproduction. p2 and removed needs-triage This issue or PR still needs to be triaged. labels Jan 6, 2025
@khushail khushail self-assigned this Jan 6, 2025
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-reproduction This issue needs reproduction. labels Jan 6, 2025
@khushail
Copy link
Contributor

khushail commented Jan 6, 2025

Hi @daveharig , thanks for reaching out. I am not able to reproduce the issue on my side.

Here is what I did -

  1. created and deployed a stack successfully -
Screenshot 2025-01-06 at 1 54 25 PM
  1. Then I deleted it and then re-deployed it , which succeeded -
Screenshot 2025-01-06 at 1 56 18 PM

So I did not get any error message.

Could you please share more information on how to repro the error ?

@khushail khushail added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Jan 6, 2025
@daveharig
Copy link
Author

daveharig commented Jan 6, 2025 via email

@khushail
Copy link
Contributor

khushail commented Jan 6, 2025

@daveharig yes, please. Logs would be helpful as the issue is not reproducible

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 7, 2025
@khushail khushail added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 8, 2025
Copy link

github-actions bot commented Jan 9, 2025

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants