Pentaho

 View Only

 Having some problems using the Pentaho REST API

Jump to Best Answer
Chris Tau's profile image
Chris Tau posted 09-15-2022 03:14

Hi Community,
at the moment I have the challenge, to inspect the Schedules and download the generated reports from the repo.
Getting the schedules is no problem (via hxxp://myserver:8080/pentaho/api/scheduler/getJobs).
From this data I construct the path to the generated report.
For example, here's a screenshot of the currently generated reports:



Now I used the following URL to download the report

hxxp://myserver:8080/pentaho/api/repo/files/%20%3Ahome%3Aadmin%3AInventorybyLine20220915090000.xls/download​
But I always get a 404 in return.

Can any one tell me what I am doing wrong here?
Many thanks in advance for any help.

Bet Regards, chris
Chris Tau's profile image
Chris Tau Best Answer
Wow, reviewing my code showed that it was all my fault.
I did not see that I had a whitespace in front of the filename.
Now everything is working.

Regards, chris