Php 服务器返回了意外的HTTP状态代码
我的jasper报表在jasper服务器上有问题 将它们集成到我的php应用程序和jaspersoft/rest客户端中。 (wamp:php:5.6.31,mySql 5.7.19)(jasperserver6.6)Php 服务器返回了意外的HTTP状态代码,php,http,jasperserver,Php,Http,Jasperserver,我的jasper报表在jasper服务器上有问题 将它们集成到我的php应用程序和jaspersoft/rest客户端中。 (wamp:php:5.6.31,mySql 5.7.19)(jasperserver6.6) 在某些情况下,作为超时或进程终止的示例,expectedStatusCodes不会被重新调整作为响应。很好,我找到了答案,如果有人想知道怎么做,只需留下评论。-br元素的开始标记是必需的,但结束标记是禁止的。这是胡说八道。 require_once __DIR__ . "/ven
在某些情况下,作为超时或进程终止的示例,expectedStatusCodes不会被重新调整作为响应。很好,我找到了答案,如果有人想知道怎么做,只需留下评论。
-br元素的开始标记是必需的,但结束标记是禁止的。这是胡说八道。
require_once __DIR__ . "/vendor/autoload.php";
use Jaspersoft\Client\Client;
use Jaspersoft\Exception\RESTRequestException;
try{
$c = new Client(
"http://localhost:8081/jasperserver-pro",
"superuser",
"superuser",
"organization_1"
);
$report = $c->reportService()->runReport('/reports/Blank_A4_1', 'html');
echo $report;
} catch (RESTRequestException $e) {
echo 'RESTRequestException:';
echo '</br>Exception message: ', $e->getMessage(), "\n";
echo '</br>Set parameters: ';
var_dump($e->parameters);
echo '</br>Expected status code:';
var_dump($e->expectedStatusCodes);
echo '</br>Error code: ', $e->errorCode, "\n";
}
RESTRequestException:
Exception message: An unexpected HTTP status code was returned by the server
Set parameters:
C:\wamp64\www\TestBI\index.php:29:null
Expected status code:
C:\wamp64\www\TestBI\index.php:31:
array (size=1)
0 => int 200
Error code: