Forum Discussion
Noeleke1301
2 years agoHelper III
[403] error on ExportToFile API request
Hi all, I keep getting a 403 response on my attempt to export a report to PDF in a Python script. The report is published in a fabric trial workspace, so it is dedicated All permissions are se...
AmosHersch
2 years agoMicrosoft Employee
Hi Noeleke1301 ,
You wrote: I'm getting a token as response on the GenerateToken API,
Do you refer to the API for generating an embed token? The call to the "Export to File" API should be done with an AAD token (like any other API).
Did you check in the reponse message has additional information in the message body besides the returned error code?
Noeleke1301
2 years agoHelper III
I've solved it now by changing the grant_type to 'password'.