<?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 System.Net.WebException: The underlying connection was closed: The connection was closed unexpec in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/System-Net-WebException-The-underlying-connection-was-closed-The-connection-was/m-p/110230#M1627</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're running into an issue on one of our cDOT Cluster (8.2.3P2) with sporadic closed connections as indicated by the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;24&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;An unhandled exception occurred: Exception: Error number: 0&lt;BR /&gt;25&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[Filer = 10.188.120.220] &amp;lt;sis-status&amp;gt;&amp;lt;path&amp;gt;vol_name&amp;lt;/path&amp;gt;&amp;lt;verbose&amp;gt;True&amp;lt;/verbose&amp;gt;&amp;lt;/sis-status&amp;gt; ---&amp;gt; NetApp.Manage.NaException: Failed invoking API ---&amp;gt;&lt;STRONG&gt; System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;26&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest.GetResponse()&lt;/STRONG&gt;&lt;BR /&gt;27&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; at NetApp.Manage.HTTPClient.DoRequest()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workflow is a C# based program that uses our SDK and API calls on a W2K R2 based host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While dedupe is running on a given Volume we check every ten seconds if dedupe is completed. The command succeeds most of the time but not always. After the error above we then get error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command was invoked on filer: 10.188.120.220&lt;BR /&gt;not authorized for that command ---&amp;gt; NetApp.Manage.NaApiFailedException: not authorized for that command&amp;nbsp;&amp;nbsp; at NetApp.Manage.NaServer.InvokeElem(NaElement element)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what would cause the connection to be closed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find any errors about both the closed connections nor what looks like an RBAC issue on the Cluster itself (mgwd, debug, messages). I do see the incoming requests in the apache log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Mike&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 23:11:44 GMT</pubDate>
    <dc:creator>fitzner</dc:creator>
    <dc:date>2025-06-04T23:11:44Z</dc:date>
    <item>
      <title>System.Net.WebException: The underlying connection was closed: The connection was closed unexpec</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/System-Net-WebException-The-underlying-connection-was-closed-The-connection-was/m-p/110230#M1627</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're running into an issue on one of our cDOT Cluster (8.2.3P2) with sporadic closed connections as indicated by the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;24&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;An unhandled exception occurred: Exception: Error number: 0&lt;BR /&gt;25&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[Filer = 10.188.120.220] &amp;lt;sis-status&amp;gt;&amp;lt;path&amp;gt;vol_name&amp;lt;/path&amp;gt;&amp;lt;verbose&amp;gt;True&amp;lt;/verbose&amp;gt;&amp;lt;/sis-status&amp;gt; ---&amp;gt; NetApp.Manage.NaException: Failed invoking API ---&amp;gt;&lt;STRONG&gt; System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;26&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest.GetResponse()&lt;/STRONG&gt;&lt;BR /&gt;27&amp;nbsp;&amp;nbsp; &amp;nbsp;6:54:49 PM&amp;nbsp;&amp;nbsp; &amp;nbsp;Console&amp;nbsp;&amp;nbsp; &amp;nbsp;Failure&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; at NetApp.Manage.HTTPClient.DoRequest()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workflow is a C# based program that uses our SDK and API calls on a W2K R2 based host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While dedupe is running on a given Volume we check every ten seconds if dedupe is completed. The command succeeds most of the time but not always. After the error above we then get error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command was invoked on filer: 10.188.120.220&lt;BR /&gt;not authorized for that command ---&amp;gt; NetApp.Manage.NaApiFailedException: not authorized for that command&amp;nbsp;&amp;nbsp; at NetApp.Manage.NaServer.InvokeElem(NaElement element)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what would cause the connection to be closed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find any errors about both the closed connections nor what looks like an RBAC issue on the Cluster itself (mgwd, debug, messages). I do see the incoming requests in the apache log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Mike&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:11:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/System-Net-WebException-The-underlying-connection-was-closed-The-connection-was/m-p/110230#M1627</guid>
      <dc:creator>fitzner</dc:creator>
      <dc:date>2025-06-04T23:11:44Z</dc:date>
    </item>
  </channel>
</rss>

