I'm having a problem rendering reports with custom visuals using the JavaScript API. The report is hosted in the Power BI service, rather than Power BI Embedded.
The rest of the report renders fine. Custom visuals however do not appear and I get a 401 error:
I then open the same report from within in the Power BI service and then refresh it. Then when I return to my page with the embedded report, and refresh it, everything renders successfully.
Please could someone help?
Thanks
James