This is error from Iron.io library.
# vendor\composer\autoload_classmap.php
'Http_Exception' => $vendorDir . '/iron-io/iron_core/IronCore.class.php',
Try puting something like:
Queue::getIron()->ssl_verifypeer = false;
to the top of routes.php
gecbla said:
This is error from Iron.io library.
# vendor\composer\autoload_classmap.php 'Http_Exception' => $vendorDir . '/iron-io/iron_core/IronCore.class.php',
Try puting something like:
Queue::getIron()->ssl_verifypeer = false;
to the top of routes.php
Hi gecbla;
I added it on top of app/routes.php and now I am getting this:
[Http_Exception]
http error: 400 | {"msg":"Only http(s), ironmq and ironworker schemes supported in subscriber URL's."}
Thanks
Change
php artisan queue:subscribe atless admin.atless.com.au/queue
to
php artisan queue:subscribe atless http://admin.atless.com.au/queue
Thanks it's working.
Just wondering, how did you know about this? What should I read about to learn this?
Thanks
Firs time I heard about Iron is in one of Jeffreys video. After that I created account and started finding my way around code. They have great documentation and Packagist libraries for php: Queue, Worker, Cache
If you at some time stuck with queues pay attention to this issue. Current solution is to manually add pull request or use queue library directly! Laravel at this time returns response 200 after Queue:marshal().
You can wrap you queue push code with try/catch statements to catch errors (ie. when iron.io servers are down).
try {
Queue::push('AddContent');
} catch (Http_Exception $e) {
Log::info('Queue::catch');
}
I also found myself using workers for splitting some long running data scraping job into more smaller ones, so I cut execution time drastically! There is great Ruby gem for easy making of worker packages. PHP examples are here
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community