cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Power BI REST API - Authentication failed because the remote party has closed the transport stream.

Hi, I am getting error "Authentication failed because the remote party has closed the transport stream." while connecting to Power BI REST API via a SSIS Script task. It was working fine till last Friday and sudently it started throwing error. below is the api string i am calling -

 

https://api.powerbi.com/v1.0/myorg/groups?$filter=contains(name,'ECHO')

 

anyone aware about any changes in the API side recently? I find some links asking to change target framework on script task side and I changed it from 4.5 to 4.6 but still getting this error. any help is appriciated.

 

 

Thanks in Advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Re: Power BI REST API - Authentication failed because the remote party has closed the transport stre

maybe related to the TLS 1.2 enforcement?

View solution in original post

4 REPLIES 4
Highlighted
Resident Rockstar
Resident Rockstar

Re: Power BI REST API - Authentication failed because the remote party has closed the transport stre

maybe related to the TLS 1.2 enforcement?

View solution in original post

Highlighted
Frequent Visitor

Re: Power BI REST API - Authentication failed because the remote party has closed the transport stre

same here

Highlighted
Frequent Visitor

Re: Power BI REST API - Authentication failed because the remote party has closed the transport stre

checked "internet option" in my computer. TLS 1.0, 1.1, 1.2 are checked.

Highlighted
Regular Visitor

Re: Power BI REST API - Authentication failed because the remote party has closed the transport stre

Yes. it was TLS 1.2 enforcement issue, I used below in my code and it fixed it.

 

System.Net.ServicePointManager .SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; 

 

 

 

 

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!