无法捕获 SoapFault 异常。错误的网关

Unable to catch SoapFault exception. Bad Gateway

我无法在 PHP try catch 块中捕获 SoapFault 异常。我的代码也在等待服务器响应的 max_execution_time(120 秒)中 运行。

我正在看到消息

Warning: Uncaught SoapFault exception: [HTTP] Bad Gateway in D:\wamp\www\dev6\application\libraries\Search.php:161 ...

我的代码,

try {

    $oClient = new SoapClient( $this->CI->config->item('indexing_wsdl_url'),
                                array(
                                    "trace"         => true,
                                    "exceptions"    => true,
                                )
                            );

    $result = $oClient->add(
            array(
                // Application specific parameters goes here
            )
    );// (this is line number 161 as seen in the warning)

} catch (SoapFault $fault) {

    log_message('error', $fault->getMessage());
} 

我正在使用 Codeigniter 3.0 框架,这个特定的代码驻留在一个库中。

这可能是什么问题?

此致

问题出在超时上。

当我给脚本更多的时间执行时,错误被捕获了。