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

Return 500 http error, instead of 200, when dotenv fails to load #45235

Merged
merged 2 commits into from Dec 9, 2022
Merged

Return 500 http error, instead of 200, when dotenv fails to load #45235

merged 2 commits into from Dec 9, 2022

Conversation

cosminardeleanu
Copy link
Contributor

When dotenv fails, the response on http is always 200.

Because of 200 response, alerts might not be triggered, and data will be cached with whatever laravel decides to output.

When dotenv fails, the response on http is always 200.

Because of 200 response, alerts might not be triggered, and data will be cached :(
@GrahamCampbell
Copy link
Member

I wonder if we'd be better to just throw the exception and have things crash in the usual way.

@taylorotwell taylorotwell merged commit 1c10e4f into laravel:9.x Dec 9, 2022
@cosminardeleanu cosminardeleanu deleted the patch-1 branch December 10, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants