cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dpasha Frequent Visitor
Frequent Visitor

Power BI Desktop connecting to secure WebAPI

I have an issue while connecting Power BI Desktop to Web API below are the details for the issue

  • The data access in Power BI is through a web API using the Web data source of Power BI
  • We are using custom headers (like x-key & x-access-token) for Authorization in HTTP (request header parameters in below Screenshot(1)) and were able to access the data when the connection was http,
  • But once the backend application URL was changed from http to https connection we are not able to access the data and are getting the error “Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel” as shown in screenshot(2).
  • Note i was able to test the API for the application using Postman and it was working fine.

 

SC1.jpgScreenshot 1

 SC2.jpgScreenshot 2

 

Kindly let us know if there is a way access the data using HTTPS and custom headers or is there a workaround for this issue in Power BI

2 REPLIES 2
Microsoft v-yulgu-msft
Microsoft

Re: Power BI Desktop connecting to secure WebAPI

Hi @dpasha,

 

Please check the advice mentioned in below links to see whether they are helpful to your problem:

SSL Certificate Issue - can I ignore it?

"Could not establish trust relationship for the SSL/TLS" error

 

Besides, to connect to a secure Web API in Power BI, please see this blog.

 

Best regards,
Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dpasha Frequent Visitor
Frequent Visitor

Re: Power BI Desktop connecting to secure WebAPI

Hi Yuliana Gu,

 

I tried your suggestions but it still giving the same error. Do you have any another suggestions.

 

Thanks in Advance

 

Regards,

Danish Pasha

 

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors