Page not found after sucessfully running report using REST_V2 reportExecution service

0

Hi everybody,

I'm using Jasper Server 7.1.0 Community Edition. I've recently started to try running reports asynchronously using the rest_v2 reportExecution service.

Right now I can successfully login via a GET or POST command, I can sucessfully run the report via a POST command, I can get the status the entire time it's running with no problem and I even successfully get the execution details when it's finished running... and it shows the correct number of pages, etc. too in the detail so I know it ran.

BUT... I simply CANNOT download the output afterward. Every time I try and issue a GET request using the request ID and export ID as instructed in the REST API documentation I always get a 404 "Page not found" error.

Can anyone please help? I have been at this for so long I don't remember when I started and I keep coming back to the same resources over and over and over when I search.

Thanks in advance!

 

rmorris's picture
Joined: Oct 30 2018 - 10:22am
Last seen: 2 days 18 hours ago

1 Answer:

0

I tested this in 7.1 Pro version and it worked for me. The main thing is to ensure you use the correct requestid and exportid that is generated after running the reportExecution POST request each time because a 404 signifies that the requestid or perhaps export id is not correct. Here is an example of the GET request to download :

http://server:8080/jasperserver-pro/rest_v2/reportExecutions/04c75230-dc...

I also changed the header Content-Type to application/pdf for PDF output or text/html for HTML output.  

I use Postman tool to test. I haven't tested in Community version but I doubt the issue is due to that.  

vchiem's picture
2650
Joined: May 1 2017 - 5:33pm
Last seen: 7 hours 44 min ago
Feedback
randomness