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
Sentry queue tracing is possibly passing null to a Symfony component during Artisan::queue() #588
Comments
Can you also share how you are calling We shall try to reproduce but it seems like we are trying to extract some data from the command that is running that is invalid or in an incorrect state causing this issue. To be clear, we shouldn't cause issues of course, but we are not explicitly setting or mutating Artisan arguments so I'm a little puzzled 🤨 (also, already, thanks for your very detailed report) |
So doing this results in the same error: I think you are passing Let's fix that! |
So I think I got it, #589. You can try it out by replacing Would be greatly appreciated if you can test the fix on your end too! |
@stayallive Hello. Yes thanx for quick reply. We upgraded from Laravel 6 to 9 and allowed passing like this Artisan::call('command:name', ['arg' => ?string]) stricter type hinting is what I suspected. Thanx. I will reproduce to check but that sounds correct. |
@stayallive Yes I can confirm that passing a null input for |
Perfect, we'll release a bug fix first thing in the European morning. Thanks for reporting and validating the fix 🙌 |
Environment
--Staging--
Ubuntu 20.04
laravel/framework - 9.34.0
sentry/sentry-laravel - 2.14.1
--Dev--
Debian GNU/Linux 10 (buster)
laravel/framework - 9.34.0
sentry/sentry-laravel - 2.14.1
Steps to Reproduce
Artisan::queue()
null
null
ie sentry enabledExpected Result
Sentry would not cause the artisan queue command handler to fail.
Actual Result
--Staging--
https://sentry.io/share/issue/034cdb67d179495d85e53621563566e8/
--Local--
https://sentry.io/share/issue/034cdb67d179495d85e53621563566e8/
The text was updated successfully, but these errors were encountered: