Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to fetch an access token by using the following code.
But I am getting error "The remote server returned an error: (403) Forbidden".
What might be the problem.
Thanks In Advance.
Regards
Niranjan
Solved! Go to Solution.
Hi,
The Issue got resolved. It was due to firewall blocking the URL.
Once the URL was whitelisted in Firewall, I was able to fetch the access token.
Thanks for the help.
Regards
Niranjan P
Hi @spniranjan
What are you doig this in? It's not PQ.
Have you confrmed that the URLis valid?
Have you tried making the request with Postman?
have you confirmed the credentials you are using have the rights to do what you are trying?
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Hi @PhilipTreacy ,
Thanks for the reply. Sorry for the delayed response.
I have created a Service Principal App in Azure webpage. I have granted permissions for the App.
And using the App Id, App Secret and my Tenant Id I am trying to fetch the Access Token.
But I am getting FOrbiddent 403 error.
I have not tried through POstman. I tried in POstman Web but it is saying Request is not sent due to CORS.
Kindly help on what may be the reason.
Thanks & Regards
Niranjan P
Hi,
The Issue got resolved. It was due to firewall blocking the URL.
Once the URL was whitelisted in Firewall, I was able to fetch the access token.
Thanks for the help.
Regards
Niranjan P
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 |
User | Count |
---|---|
8 | |
6 | |
4 | |
4 | |
4 |