cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
srduval
Advocate V
Advocate V

Custom Connector not working

@MBAS2020 #MBAS2020

I create a custom connector and have the app setup with azure, but I am unable to connect to power bi. not really sure what I'm missing I've used the swagger file from here:

https://raw.githubusercontent.com/microsoft/PowerBI-CSharp/master/sdk/swaggers/swagger.json

 

and as far as I can tell I have the proper connection oauth setup because the request returns an authorization token.

{
  "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkN0VHVoTUptRDVNN0RMZHpEMnYyeDNRS1NSWSIsImtpZCI6IkN0VHVoTUptRDV {Intentionally Removed} X9YSwVVnR7i3SgP5Rfpap9vtxK-UK_rrwvT59aJcfbcS4N7AogaLHVvgf_eJVTJn46QBLZ2_IGBPAHTWaXoPdemNFIqfF-2jyZYOc-PJmssnqc04OKAjcL-JfRZNcsVjECs1KpCvkbz-hn6-cJM_w9Mq7Dm-rd68dLOEWZc0wnaw"
}

 

when I test the actions I get:

Operation failed (403), see response below

Headers:

{
  "content-length": "0",
  "date": "Thu, 07 May 2020 01:59:09 GMT",
  "requestid": "24015489-0f23-4c55-a49d-86db70d77a0d",
  "strict-transport-security": "max-age=31536000; includeSubDomains",
  "x-content-type-options": "nosniff",
  "x-frame-options": "deny"
}

 

Body is blank

2 REPLIES 2
Michael_Shen_JT
Community Support
Community Support

I don't have experience with pbi api.

But from my experience, in custom connector, the query parameter has different data type, correct data type may cause failure sometime. 

Not sure if you have the good request & response called from browser or other clients.

If so, you may compare the request sent from your app and the good request.

That will be an efficient way to know what request data is wrong/missed.

@Michael_Shen_JT   I think that's where my connector is broken, but not sure how to change it, trying to send a request to PBI to get workspaces and this is what is sent as the request, but it's not what I put i

 

This is the URL I put into the get verb request URL:

https://api.powerbi.com/v1.0/myorg/datasets

 

https://msmanaged-na.azure-apim.net/apim/xxxxxxxx-5f

 

https://msmanaged-na.azure-apim.net/apim/xxxxxxxx-5fpower-5fbi-5f1befd0a94f65e056-xxxxxxxxxxx/bc8cbf...

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,591)