We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/index.php?p=actions/assets/generate-transform is throwing an 500 error instead of 400 bad request.
/index.php?p=actions/assets/generate-transform
https://github.com/craftcms/cms/blob/5.x/src/controllers/AssetsController.php#L1127 The try/catch block is handling the BadRequestHttpException and throws a ServerErrorHttpException. Causing 2 errors in the error log.
Throw a bad request 400 error.
Throws a 500 error
5.7.1.1
8.3.16
Ubuntu
No response
The text was updated successfully, but these errors were encountered:
2b9de13
Thanks for pointing that out! Just improved assets/generate-transform responses for the next Craft 4 and 5 releases.
assets/generate-transform
Sorry, something went wrong.
Craft 4.15.4 and 5.7.6 are out with that change. Thanks again!
No branches or pull requests
What happened?
Description
/index.php?p=actions/assets/generate-transform
is throwing an 500 error instead of 400 bad request.https://github.com/craftcms/cms/blob/5.x/src/controllers/AssetsController.php#L1127
The try/catch block is handling the BadRequestHttpException and throws a ServerErrorHttpException.
Causing 2 errors in the error log.
Steps to reproduce
/index.php?p=actions/assets/generate-transform
with no params.Expected behavior
Throw a bad request 400 error.
Actual behavior
Throws a 500 error
Craft CMS version
5.7.1.1
PHP version
8.3.16
Operating system and version
Ubuntu
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: