Forum Discussion
Power BI Bearer token REST API throws error The remote server returned an error: (400) Bad Request.
Hello Xiaoxin -
I have hosted the WCF service in an Azure web app. The console application works fine in my local computer (VS2019) and I always get a true oauth2 token.
When I access the WCF web service (using web app URL) it throws 400 bad request error.
Hi RayGn2000,
Have you checked the setting of the azure web app configuration to confirm if power bi URLs are in the allow list?
Azure App Service access restrictions - Azure App Service | Microsoft Docs
BTW, you can also contact azure support to confirm if they have limits on the rest API usage when you host on the azure side.
Regards,
Xiaoxin Sheng
- RayGn20005 years agoFrequent Visitor
Seems the URLs are allowed in the web app.
- Anonymous5 years agoNot applicable
Hi RayGn2000,
Did this issue appear when you deploy the code to other web services? I'd like to confirm if these requests have been blocked by security or other azure settings.
Regards,
Xiaoxin Sheng