doudiaozhi6658 2014-03-10 11:06
浏览 79
已采纳

使用Iron IO Laravel 4发送邮件

I use command:

php artisan queue:subscribe laravel http://your-site-url/queue/push

and get error:

[Http_Exception] http error: 0 | SSL certificate problem. verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed. failed queue:subscribe [--type[="... "]] queue url

I was sign up at iron.io and add project_id, token and default key driver to iron in app/config/queue.php

  • 写回答

1条回答 默认 最新

  • douchun5976 2014-03-10 14:46
    关注

    This is a IronIO problem, to circumvent it on Laravel you can add this to your app/start/global.php file:

    Queue::connection()->getIron()->ssl_verifypeer = false;
    

    Look at the vendor\iron-io\iron_mq readme:

    Troubleshooting
    
    http error: 0
    
    If you see  `Uncaught exception 'Http_Exception' with message 'http error: 0 | '`
    it most likely caused by misconfigured cURL https sertificates.
    There are two ways to fix this error:
    
    1. Disable SSL sertificate verification - add this line after IronMQ initialization: `$ironmq->ssl_verifypeer = false;`
    2. Switch to http protocol - add this to configuration options: `protocol = http` and `port = 80`
    

    Also, you can just manually subscribe to your url directly in the IronMQ web admin page:

    1. Go to https://hud.iron.io/dashboard
    
    2. On your projects, click in tue MQ button of your project
    
    3. Select the "Queues" tab
    
    4. Click on your queue name, this must be the same you subscribed to using the command "artisan queue:subscribe"
    
    5. In the "PUSH INFORMATION" box, check if your queue push type is set to "multicast".
    
    6. Add a your url in the "SUBSCRIBERS" box.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路