gpt4 book ai didi

php - fatal error : Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out'

转载 作者:可可西里 更新时间:2023-11-01 00:59:21 24 4
gpt4 key购买 nike

我正在开发一个 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-&gt;performRequest()
#1 /my/project/path/myProject/application/ws/controllers/alldata.php(40): Alldata-&gt;fetch_tweets('1', Array)
#2 [internal function]: Alldata-&gt;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 的健康检查和监控部分下查看端口详细信息。

关于php - <b> fatal error </b> : Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31786664/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com