cdk deploy: fails with cryptic error if notices request times out
- Dominant language
- TypeScript
- Stars
- 105
- Forks
- 122
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 71
Description
### Describe the bug
When I run `cdk deploy`, it fails with the following error and exit code 1:
```
Subprocess exited with error null
```
No extra information is printed out. However, when I use `--verbose` it raises the following info:
```
[13:31:21] outdir: cdk.out
[13:31:21] env: {
CDK_DEFAULT_REGION: 'us-east-1',
CDK_DEFAULT_ACCOUNT: 'XXXXXXXXXXX',
CDK_OUTDIR: 'cdk.out',
CDK_CLI_ASM_VERSION: '32.0.0',
CDK_CLI_VERSION: '2.87.0'
}
[13:31:24] Could not refresh notices: Error: Request timed out
Subprocess exited with error null
[13:32:38] Could not refresh notices: Error: Request timed out
[13:32:38] Error: Subprocess exited with error null
at ChildProcess. (/usr/local/lib/node_modules/aws-cdk/lib/index.js:414:50537)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
```
The same stack is able to deployed to other accounts, but for some unknown reason it fails with some others.
### Expected Behavior
Deploy normally, or show a more helpful error message.
### Current Behavior
Fails with a not helpful message.
### Reproduction Steps
I'm not sure how you can reproduce this, without having this stack.
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### CDK CLI Version
2.87.0
### Framework Version
_No response_
### Node.js Version
18.16.1
### OS
Amazon Linux 2
### Language
Python
### Language Version
3.9.0
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.