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

My jasper server not showing running reports using rest_v2 service


sushobhan.b

Recommended Posts

Hi All,

 

I am getting values for jasper server like

http://<host>:<port>/jasperserver[-pro]/rest_v2/resources

but i am not geting running reports using below commands.

http://<host>:<port>/jasperserver[-pro]/rest_v2/reports

http://<host>:<port>/jasperserver[-pro]/rest_v2/reportExecutions

Do i need to modify anything in server to work those coomand ?please help.

Thanks

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...

I have the same issue. I am running a fresh Jasperserver CE in docker (bitnami image). I can interactively log into the server and create a test report that successfully runs. However, using the REST API, whenever I request 

http://<host>:<port>/jasperserver/rest_v2/reports,

I get an empty response with HTTP status 204 (no content). Other resources, such as login, logout, or 

http://<host>:<port>/jasperserver/rest_v2/resources

yield meaningful results. So the REST API works correctly in principle.

Is there some configuration change necessary so that reports can be listed via REST? 

Link to comment
Share on other sites

I am unsure whether this solves your problem, but for my own (see comment above), it was  a matter of wrong expectations combined with a wrong user. I assumed

http://<host>:<port>/jasperserver[-pro]/rest_v2/reports

was supposed to list all reports, but that is not the case.

Similarly, I believe 

http://:/jasperserver[-pro]/rest_v2/reportExecutions

only shows the reports that are actually currently executing, not those scheduled to do so. 

Eventually it did work for me after using the correct requests and creating a new user with the role ROLE_USER (see also my answer to my problem at https://community.jaspersoft.com/questions/1163826/reports-rest-request-yields-empty-response-jasperreport-server)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...