简体   繁体   English

Zend_Http_Client_Adapter_Exception'并显示消息“无法连接到ssl://api.twitter.com:443”

[英]Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to ssl://api.twitter.com:443

I am a trying to get a twitter feed displayed on the home page of my Zend application, so far I have my IndexController code: 我试图在我的Zend应用程序的主页上显示一个Twitter提要,到目前为止,我已经有了IndexController代码:

// ---------------Twitter Feed
        $token = new Zend_Oauth_Token_Access();
    $token->setParams(array(
        'oauth_token' => 'token',
        'oauth_token_secret' => 'tokSecret',
    ));

    $twitter = new Zend_Service_Twitter(array(
        'username' => 'usrname',
        'accessToken' => $token,
        'oauthOptions' => array(
            'consumerKey' => 'consKey',
            'consumerSecret' => 'consSecret',
        )
    ));

    $options = array('accessToken' => $token);




    $this->view->twitter_timeline = $twitter->statuses->userTimeline();

Which is giving me the error: 这给了我错误:

exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to ssl://api.twitter.com:443. Error #-223657718: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?'

I can connect to the api.twitter.com through my browser so it's not a proxy issue.. 我可以通过浏览器连接到api.twitter.com,所以这不是代理问题。

我按照说明启用了OpenSSL,从而解决了该错误!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误</ b>:未捕获的异常“异常”,消息“无法连接到api.twitter.com端口443:连接超时” - <b>Fatal error</b>: Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out' XMLRPC Zend_Http_Client_Adapter_Exception&#39;,带有消息&#39;10秒后读取超时 - XMLRPC Zend_Http_Client_Adapter_Exception' with message 'Read timed out after 10 seconds 解决Zend \\ Http \\ Client \\ Adapter \\ Exception \\ RuntimeException - resolve Zend\Http\Client\Adapter\Exception\RuntimeException Zend_Http_Client SSL异常 - Zend_Http_Client SSL Exception OpenSSL SSL_connect: SSL_ERROR_SYSCALL 连接到 api.amazonalexa.com:443 - OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.amazonalexa.com:443 PHP套接字无法连接到ssl // :: 443 - php sockets unable to connect to ssl//:443 消息为“无法连接到api.twilio.com:443的Services_Twilio_TinyHttpException” - Services_Twilio_TinyHttpException' with message 'Failed connect to api.twilio.com:443 从 twitter 获取用户 email 进行身份验证(https://api.twitter.com/1.1/account/verify_credentials.json) - Get users email from twitter for auth (https://api.twitter.com/1.1/account/verify_credentials.json) Zend_Http_Adapter和错误消息 - Zend_Http_Adapter & error message 在 Zend_HTTP_Client 中跳过 SSL 检查 - Skip SSL Check in Zend_HTTP_Client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM