![](/img/trans.png)
[英]Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to ssl://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'
我正在開發Codeigniter項目,我使用twitter api庫來獲取twitter數據。 在我更改服務器之前它完美地運行,但是在更改服務器之后它產生了波紋錯誤。 我不知道這個問題。
<b>Fatal error</b>: Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out' in /my/project/path/myProject/application/ws/libraries/TwitterAPIExchange.php:297
Stack trace:
#0 /my/project/path/myProject/application/ws/controllers/alldata.php(247): TwitterAPIExchange->performRequest()
#1 /my/project/path/myProject/application/ws/controllers/alldata.php(40): Alldata->fetch_tweets('1', Array)
#2 [internal function]: Alldata->index()
#3 /my/project/path/myProject/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array)
#4 /my/project/path/myProject/index.php(188): require_once('/home/develnik/...')
#5 {main}
thrown in <b>/my/project/path/myProject/application/ws/libraries/TwitterAPIExchange.php</b> on line <b>297</b><br />
如果端口被打開,請檢查您的cPanel,有時它顯示已打開但實際上沒有。 您可以在運行狀況檢查和監視部分的cPanel中查看端口詳細信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.