Forum Discussion
Struggling to create refresh plan with rest API
- 4 years ago
It's probably an issue with the json payload since the Report Portal itself uses the REST api to create schedules.
So what I would suggest is to open the browser developer tools and go to the network tab (I normally use Chrome or the new Edge for this sort of thing). Then create a schedule in the portal that is the same sort of thing that you would want to creat using the API. You should then see the relevant POST calls in the networking tab with real examples of valid json payloads.
You could then delete these example schedules and then re-execute the same requests using Postman.
Thank you, I tried it and found that the payload differed from what I previously used.
Unfortunally I still get an 500 internal server error when posting the same payload that is used to create a schedule from the report portal with postman. Maybe something else is still wrong, I will make some more tests.
MaxMuster wrote:
Thank you, I tried it and found that the payload differed from what I previously used.
Yes, there were a few fields in there like LastRunTime and LastStatus which I would not expect to be writeable.
MaxMuster wrote:
Unfortunally I still get an 500 internal server error when posting the same payload that is used to create a schedule from the report portal with postman. Maybe something else is still wrong,
So the other thing you could do would be to check the log files which should be in the following location:
C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles
There a number of services that make up Power BI Report Server and you would be looking for logs that start with ReportingServicesService_*.log the most recent file should hopefully have more details about what caused the 500 error.