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
When calling
response()->json([], 200)->send(); exit;
Not only there is no response coming from Laravel response() but the octane worker is also stopped, this is cli output:
response()
`14:53[1015] php artisan octane:start
INFO Server running…
Local: http://127.0.0.1:8000 Press Ctrl+C to stop the server INFO [] network error 500 GET / ............................. 165.14 ms worker stopped`
When using exit;, there is always server error with 500. Is this desired? Even calling an empty route with exit; has the same result.
exit;
Call exit; anywhere in the code and it results to HTTP response 500 and stops the octane worker.
The text was updated successfully, but these errors were encountered:
Don't use exit.
Sorry, something went wrong.
No branches or pull requests
Description:
When calling
response()->json([], 200)->send(); exit;
Not only there is no response coming from Laravel
response()
but the octane worker is also stopped, this is cli output:`14:53[1015] php artisan octane:start
INFO Server running…
Local: http://127.0.0.1:8000
Press Ctrl+C to stop the server
INFO []
network error
500 GET / ............................. 165.14 ms
worker stopped`
When using
exit;
, there is always server error with 500. Is this desired? Even calling an empty route withexit;
has the same result.Steps To Reproduce:
Call
exit;
anywhere in the code and it results to HTTP response 500 and stops the octane worker.The text was updated successfully, but these errors were encountered: