-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
issue with queuing emails #35235
Comments
I am not sure if this is related to ramsey/uuid#327 |
Please post your jobs. |
It is a bit tricky .. as stated above, this is inside a Laravel Spark application, which is proprietary code, so I am not sure if I am allowed to share the code in a public ticket. so maybe even though I am fairly sure that the issue is inside the framework, I should rather discuss this with Laravel Spark maintainre? |
Maybe what I can say is that the Spark code assigns |
Hmm yeah it should be a scalar or at least have the option to be converted to a scalar. I'm talking this over with the team. |
ok thank you .. there are 4 places where a UUID is assigned during model creation, if you have access to the code you can find them with the following search: |
Oh one more thing .. those places have not changed in a long time. So it was possible before to assign |
hmm yeah .. LazyUuidFromString seems to be new in 4.0 and it does not have |
ah no .. it does have a |
so indeed forcing the string cast fixes the issue as well |
I can invite a user to a team inside Laravel Spark without problems. We haven't received a similar issue from other customers as well. You'll need to share more details on your issue. |
ok thx. do you also have ramsey/uuid 4.1+ ? |
What's the full stack trace of the exception you get? |
also what is |
ah damn indeed. this part is custom code. anyway I have a work around, by simply forcing the id to be a string. I will try to create a reproducable test case on plain Laravel to show the issue with using a model with UuidInterface instances as the ID while using the Queue. If I manage to do this then we can have a more productive discussion. Sorry for not doing this immediately. I clearly got confused about what is custom code and what is spark code. closing the ticket for now until I have this reproducable test case. |
@lsmith77 no worries. Thanks for raising this. Glad you got it sorted 👍 |
Description:
I am using Laravel Spark, sending invitation emails (ie. using
SendInvitation
which in turn usesInviteUserEmail
). This causes an exception as the$id
is an instance ofLazyUuidFromString
and not a string/integer, which breaks inside\Illuminate\Queue\SerializesAndRestoresModelIdentifiers::restoreCollection()
.I am opening the issue here because I suspect the issue isn't Spark specific.
Steps To Reproduce:
Invite a user to a team inside Laravel Spark
Hacky Fix
The text was updated successfully, but these errors were encountered: