IBM Watson Relationship Extraction";转发错误";(状态代码500


IBM Watson Relationship Extraction "Forwarding error" (status_code 500)

我正在向IBM/WWatson的关系提取服务发布一段文本,但大约90秒后收到以下响应:

{"状态":{"消息":"转发错误","状态代码":500}}

大多数小文件运行良好,结果如预期。但是,此文件的大小很大(200k(。

这是我的代码:

set_time_limit(0);
$curl = curl_init();
$post_args = array(
'txt' => $data,
'sid' => 'ie-en-news',
'rt' => 'json' 
);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_args);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_URL, "https://gateway.watsonplatform.net/relationship-extraction-beta/api/v1/sire/0");
curl_setopt($curl, CURLOPT_USERPWD, "XXXXXXXXXXXXX:XXXXXXXXXXXXX");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT ,0);
curl_setopt($curl, CURLOPT_TIMEOUT, 600); 
$result = curl_exec($curl);
curl_close($curl);
$decoded = json_decode($result, true);
echo "RESPONSE: [<Br/><pre>$result</pre><br/>]";

我尝试使用set_time_limit()CURLOPT_CONNECTTIMEOUTCURLOPT_TIMEOUT来增加超时值,但没有什么区别。

当找不到服务(在本例中为视觉识别(时,这是一个内部错误,因此负载均衡器返回http状态500转发错误
这可能是网络故障,服务现在运行良好。