-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Laravel 5 Event Queue's #426
Comments
Can't reproduce this |
@askmatey are you using the queue driver = database ? |
hi, thx, |
No i have not, switched to beanstalk and its all good |
ok thanks, I meet the same problem, I will switch too.. |
Just an update that I got this bug too Exception
Here comes the JSON:
|
I'm working on rolling my fix into laravel-mongodb here: https://github.com/jeremy-brenner/laravel-mongodb |
Ok, pull request submitted. #623 "jenssegers/mongodb": "dev-master", and add the repository:
You also need to set your QUEUE_DRIVER to "database". |
When i try to run a queue worker i get this error:
php artisan queue:work
exception 'MongoException' with message 'zero-length keys are not allowed, did you use $ with double quotes?' in /vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Collection.php:59
Stack trace:
#0 [internal function]: MongoCollection->update(Array, Array, Array)
#1 /vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Collection.php(59): call_user_func_array(Array, Array)
#2 /vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Query/Builder.php(679): Jenssegers\Mongodb\Collection->__call('update', Array)
#3 /vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Query/Builder.php(679): Jenssegers\Mongodb\Collection->update(Array, Array, Array)
#4 /vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Query/Builder.php(436): Jenssegers\Mongodb\Query\Builder->performUpdate(Array, Array)
#5 /vendor/laravel/framework/src/Illuminate/Queue/DatabaseQueue.php(181): Jenssegers\Mongodb\Query\Builder->update(Array)
#6 /vendor/laravel/framework/src/Illuminate/Queue/DatabaseQueue.php(146): Illuminate\Queue\DatabaseQueue->releaseJobsThatHaveBeenReservedTooLong('default')
#7 /vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\Queue\DatabaseQueue->pop()
#8 /vendor/laravel/framework/src/Illuminate/Queue/Worker.php(150): Illuminate\Queue\Worker->getNextJob(Object(Illuminate\Queue\DatabaseQueue), NULL)
#9 /vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(107): Illuminate\Queue\Worker->pop(NULL, NULL, 0, 3, 0)
#10 /vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(67): Illuminate\Queue\Console\WorkCommand->runWorker(NULL, NULL, 0, 128, false)
#11 [internal function]: Illuminate\Queue\Console\WorkCommand->fire()
#12 /vendor/laravel/framework/src/Illuminate/Container/Container.php(523): call_user_func_array(Array, Array)
#13 /vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array)
#14 /vendor/symfony/console/Symfony/Component/Console/Command/Command.php(253): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(91): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 {main}
The text was updated successfully, but these errors were encountered: