29281/error-thrown-power-report-server-when-trying-list-data-sets
i am sending a GET request to:
https://api.powerbi.com/v1.0/myorg/datasets with headers: Content-Type: application/json authorization : Bearerxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Response headers: server:Microsoft-HTTPAPI/2.0 strict-transport-security:max-age=31536000; includeSubDomains x-frame-options:denyx-content-type-options:nosniff requestid:174e9027-8d2f-4f98-8085-d2f9f75087a5date:Mon, 29 Oct 2018 07:21:31 GMT Request headers: content-type:application/json
Why am i not able to access datasets ? am i missing any settings?
i am sending request through RESTAPI, url would be:
https://api.powerbi.com/v1.0/myorg/datasets headers: Authorization Bearer xxxxxxxxxxxxxxxx content-type:application/json accept: application/json
still i am getting 403 error. Are there any settings to be changed in power bi report server?
Hi @saranya, I've found this helpful. Even i've had a similar problem, I had followed the guidelines from this and applied it accordingly for my case. Hope it helps.
do you mean remove (content-type:application/json) how can i pass access token?
You can do something like this:
1. Call login API to get the access token.
2. Use access token call other operation api.
Example:
WebResponse = Web.Contents(WebServiceURI, [Content = Text.ToBinary(WebServiceContent), Headers = [Authorization="Bearer " & AccessToken, #"Content-Type"="application/json", Accept="application/json"], Timeout = WebTimeout])
In addition, API can allow "username", "password", "token" as the parameters
I have granted permissions for the application i have registered
If I understand correctly, you're connecting to ...READ MORE
It's just a simple css code to ...READ MORE
Hey, There are several types of filters in ...READ MORE
Hey, I can show some steps wise steps ...READ MORE
Can anyone create a new slicer to ...READ MORE
The problem you can solve by edit this ...READ MORE
Web connections are only established using basic ...READ MORE
Follow these steps step 1 - Click on ...READ MORE
To add to @Kalgi's answer, Also make ...READ MORE
Use ADAL.js that will give you an ...READ MORE
OR
Already have an account? Sign in.