Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |