I'm working on my first Laravel app, and hit an odd problem when trying to queue up email sending using Mail::queue
to send emails.
I was originally using the sync
driver and everything worked fine, however having now switched over to the beanstalkd
driver it's stopped sending my emails.
My config is as follows:
apt-get
"pda/pheanstalk": "2.1.*"
in composer.json
What I've noticed is that every time I run
$ php artisan queue:work
I'm getting:
[ErrorException]
Insufficient data for unserializing - 2570 required, 168 present
queue:work [--queue[="..."]] [--delay[="..."]] [--force] [--memory[="..."]] [--sleep[="..."]] [--tries[="..."]] [connection]
I've tried selecting the redis
driver and that wasn't giving me the error, so clearly there is something wrong with how pheanstalk is running on my machine.
I've tried changing the pheanstalk version in composer.json
, but I'm still getting the same problem no matter which version I seem to use.
Problem is, this issue doesn't seem particularly widely documented, and the error message doesn't really give much away at all...
Any suggesions?
Check this response: https://stackoverflow.com/a/28226746/1427439
You might be having the same issue.
Basically, make sure you're not using any Eloquent models with the closure you are passing to Mail::queue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With