簡體   English   中英

您能幫我解決這個錯誤jrs-rst php client v2

[英]can you help me with this error jrs-rst php client v2

Fatal error: Uncaught exception 'Jaspersoft\Exception\RESTRequestException' with message 'An unexpected HTTP status code was returned by the server' in C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Tool\RESTRequest.php:364 
Stack trace: 
#0 C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Tool\RESTRequest.php(451): Jaspersoft\Tool\RESTRequest->handleError(404, Array, '<html><head><ti...') 
#1 C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Client\Client.php(158): Jaspersoft\Tool\RESTRequest->prepAndSend('http://localhos...', Array, 'GET', NULL, true, 'application/jso...', 'application/jso...') 
#2 C:\wamp\www\new_hris\report.php(14): Jaspersoft\Client\Client->serverInfo() #3 {main} thrown in C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Tool\RESTRequest.php on line 364"

我收到此錯誤,我不知道如何調試它。

順便說一下,這是我的代碼如下:

    require_once("vendor/autoload.php");

    use Jaspersoft\Client\Client;
    $c = new Client(
            "http://localhost:3307/jasperserver",
            "jasperadmin",
            "password"

           );       

  $js = $c->jobService();               
  $c->setRequestTimeout(60); 
  $info = $c->serverInfo();

   $report = $c->reportService()->runReport('/reports/samples/AllAccounts', 'html');

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM