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

llucas_gs

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by llucas_gs

  1. 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...