脚本宝典收集整理的这篇文章主要介绍了php – 什么导致soap响应不返回新服务器上的数据?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
Error: A847E54F5AEA4E798rt0.c.ie.o5DF59@4p7098Fs1lFf4v892c4m returned no data
这个中间部分是来自API的令牌,用于捕获响应中的数据流.问题是收到令牌后,其余的响应是空的.这是基于这个Five9’s API: How to pull reports using SOAP API and Basic Authentication的相关代码
$runReportResult = $client->runReport($runReportParam); if(isset($runReportResult->return)){ $runReportData = $runReportResult->return; $isReportRunningParam["identifier"] = $runReportData; $isReportRunningParam["timeout"] = 10; $isReportRunningResult = $client->isReportRunning($isReportRunningParam); if(empty($isReportRunningResult->return)){ $getReportResultParam["identifier"] = $runReportData; $getReportResult = $client->getReportResult($getReportResultParam); if(isset($getReportResult->return->records)){ $getReportResultData = $getReportResult->return->records; // data PRocessing stuff removed for clarITy } else { echo "Error: " . $runReportData . " returned no data"; } } else { echo "Error: " . $runReportData . " exceeded the report runtime limit"; } } else { echo "Error: " . $runReportParam["reportName"] . " wasn't found"; }
这条线在新服务器上一直被抛出.
echo“Error:”. $runReportData. “没有返回数据”;
$runReportData是更改的令牌值,所以我得到一个响应,但真正的数据没有做到.它必须是某种服务器问题,只需要一点帮助才能跟踪它.
服务器设置为芝加哥时间. PHP脚本正在使用UTC,如下所示:
echo date('Y-m-d H:i:s',time());
所以事实上,如果没有数据可用,我将来会要求提供一份报告.
新问题,为什么PHP使用UTC而不是服务器时间? ini文件被设置为UTC!
[Date] ; defines the default timezone used by the date functions ; http://PHP.net/date.timezone date.timezone = "UCT"
希望这有助于有人节省一些时间!
以上是脚本宝典为你收集整理的php – 什么导致soap响应不返回新服务器上的数据?全部内容,希望文章能够帮你解决php – 什么导致soap响应不返回新服务器上的数据?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。