Jump to content
We've recently updated our Privacy Statement, available here ×

llucas_gs

Members
  • Posts

    2
  • Joined

  • Last visited

llucas_gs's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. Hello guys! I'm using php client from the github repository and i need to select the report datasource with a kind of parameter. Someone already did that? Thanks!
  2. Hello! I'm trying to do something like this: <?PHPini_set('display_errors',1);ini_set('display_startup_errors',1);error_reporting(E_ALL);require_once "vendor/autoload.php";use JaspersoftClientClient;$c = new Client( "localhost", "8082", "jasperadmin", "jasperadmin", "/jasperserver", "organization_1" );$info = $c->serverInfo();print_r($info);?>[/code]i have a similar error: Fatal error: Uncaught exception 'JaspersoftExceptionRESTRequestException' with message 'Unexpected HTTP code returned: 401 Body of response: Apache Tomcat/7.0.42 - Error report HTTP Status 401 - Bad credentialstype Status reportmessage Bad credentialsdescription This request requires HTTP authentication.Apache Tomcat/7.0.42' in /home/lucas/projects/integracao/vendor/jaspersoft/rest-client/src/Jaspersoft/Tool/RESTRequest.php:431 Stack trace: #0 /home/lucas/projects/integracao/vendor/jaspersoft/rest-client/src/Jaspersoft/Service/JobService.php(86): JaspersoftToolRESTRequest->prepAndSend('http://localhos...', Array, 'GET', NULL, true, 'application/job...', 'application/job...') #1 /home/lucas/projects/integracao/index.php(20): JaspersoftServiceJobService->getJob('/reports/listae...') #2 {main} thrown in /home/lucas/projects/integracao/vendor/jaspersoft/rest-client/src/Jaspersoft/Tool/RESTRequest.php on line 431 Anyone know how to fix it?
×
×
  • Create New...