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
Exit status for deploy #6441
Comments
Happened to me as well, invalid role assignment, but deploy marked as successful |
I can reproduce this every time a promise fails |
This has been present since 1.48.1. Downgrading to 1.48.0 reports the correct error code |
Agree. Coming over here to create this issue. |
Still present in 1.49.0 (Enterprise Plugin: 1.3.5, Platform SDK: 2.1.0) |
I've investigated that, and found out it happens only with serverless-offline, and it's due to implied removal of I've proposed PR there: dherault/serverless-offline#767 We will also improve handling of promise rejections with another PR, which could be considered as partial fix. Still the complete fix cannot be achieved reliably without merging dherault/serverless-offline#767. |
Thank you so much @medikoo this was driving me nuts! |
This is still happening to me |
I can get the error to stop by setting I think this could be due to recently adding Epsagon. Which forces you to include My working yaml:
|
This is a Bug Report
Description
What went wrong?
Run
serverless deploy
and failed for reasons not important to this bug reportThe exit code in BASH for the failure was still 0, like nothing happened
What did you expect should have happened?
The exit code of anything you run throw the
serverless
command should be not 0 in case of an errorWhat was the config you used?
Doesn't matter, even a failed config should work in this case as a failed
serverless deploy
should throw some sort of error code, not 0Additional Data
Serverless Framework Version you're using:
1.48.2 (Enterprise Plugin: 1.3.2, Platform SDK: 2.0.4)
Operating System:
macOS, Linux
The text was updated successfully, but these errors were encountered: