<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: An existing connection was forcibly closed by the remote host in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2069585#M31672</link>
    <description>&lt;P&gt;if this happens during dataset refresh it usually means that you are bombarding the data source and it gets fed up and leaves. In your case you may have run into API calls per hour limits, but normally the error message should mention that more explicitly.&amp;nbsp; Have you seen an increase in 429's in your HTTP logs?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2021 17:58:43 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-09-10T17:58:43Z</dc:date>
    <item>
      <title>An existing connection was forcibly closed by the remote host</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2067336#M31655</link>
      <description>&lt;P&gt;Hi!&amp;nbsp; We used to consume some Power BI Pro reports but recently, when we try to reach the PowerBI reports we get the following error: "&lt;I&gt;An existing connection was forcibly closed by the remote host"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;I&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
   System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult) +6723894
   System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) +57

[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
   System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) +237
   System.Net.PooledStream.EndWrite(IAsyncResult asyncResult) +15
   System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) +121&lt;BR /&gt;&lt;BR /&gt;Continues....&lt;/FONT&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Since we have not changed anything from our code, we thought that maybe PowerBI has changed something that prevents us to consume the reports as usual. We've searched the forum with no avail.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;The piece of code that fails is:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;-HttpClient client = new HttpClient();&lt;BR /&gt;-string powerBiUrl = "&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/" + ConfigurationManager.AppSettings["powerbi:WorkspaceId"] + "/reports";&lt;BR /&gt;-client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", authToken);&lt;BR /&gt;-var result = client.GetAsync(powerBiUrl).Result;&lt;BR /&gt;-if (result.IsSuccessStatusCode)&lt;BR /&gt;-{...}&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;I hope that someone can throw some light on it.&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Thanks.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 17:00:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2067336#M31655</guid>
      <dc:creator>xboneu</dc:creator>
      <dc:date>2021-09-09T17:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: An existing connection was forcibly closed by the remote host</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2069585#M31672</link>
      <description>&lt;P&gt;if this happens during dataset refresh it usually means that you are bombarding the data source and it gets fed up and leaves. In your case you may have run into API calls per hour limits, but normally the error message should mention that more explicitly.&amp;nbsp; Have you seen an increase in 429's in your HTTP logs?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:58:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2069585#M31672</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-09-10T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: An existing connection was forcibly closed by the remote host</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2075884#M31749</link>
      <description>&lt;P&gt;Ibendlin, thank you for your reply.&lt;/P&gt;&lt;P&gt;I haven´t seen anything strange in the HTTP logs. We seldom use these reports, so I would discard the bombarding scenario. I am trying to build from scratch a small experiment app. Maybe I can see and understand what's going on and why a piece of code that hasn't been modified for months, now cannot retrieve the PowerBI reports.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 16:30:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/An-existing-connection-was-forcibly-closed-by-the-remote-host/m-p/2075884#M31749</guid>
      <dc:creator>xboneu</dc:creator>
      <dc:date>2021-09-14T16:30:43Z</dc:date>
    </item>
  </channel>
</rss>

