<?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 Python SDK Issue: Couldn't find end of Start Tag netapp in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/96781#M1276</link>
    <description>&lt;P&gt;I get the following problem when trying to use the SDK with Python (2.7, 3.3, or 3.4). If I intentionally put bad credentials I get authentication failure, so I think it is getting to the Netapp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;python apitest.py -s &amp;lt;myfiler&amp;gt; admin &amp;lt;mypassword&amp;gt; system-get-version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT:&lt;BR /&gt;&amp;lt;results status="failed" errno="13001" reason="Couldn't find end of Start Tag netapp "&amp;gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:24:35 GMT</pubDate>
    <dc:creator>salalonde</dc:creator>
    <dc:date>2025-06-05T05:24:35Z</dc:date>
    <item>
      <title>Python SDK Issue: Couldn't find end of Start Tag netapp</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/96781#M1276</link>
      <description>&lt;P&gt;I get the following problem when trying to use the SDK with Python (2.7, 3.3, or 3.4). If I intentionally put bad credentials I get authentication failure, so I think it is getting to the Netapp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;python apitest.py -s &amp;lt;myfiler&amp;gt; admin &amp;lt;mypassword&amp;gt; system-get-version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT:&lt;BR /&gt;&amp;lt;results status="failed" errno="13001" reason="Couldn't find end of Start Tag netapp "&amp;gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:24:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/96781#M1276</guid>
      <dc:creator>salalonde</dc:creator>
      <dc:date>2025-06-05T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK Issue: Couldn't find end of Start Tag netapp</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/98530#M1311</link>
      <description>&lt;P&gt;Had same problem with Perl, turned out that my Linux distribution had some bad characters on the first line of /etc/issue, a dirty quick solution was to delete that first line so I got a hit on a text-string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is in the SDK (Perl in this case, guess it is the same in Python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In NaServer.pm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sub get_platform_info .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if ($osType eq 'linux') {
if (-e "/etc/SuSE-release") {
chomp($osName = `head -n 1 /etc/SuSE-release`);
} else {
choIn mp($osName = `head -n 1 /etc/issue`);
}
if ($osName =~ m/(.*?) \(.*?\)/) {
$osName = $1;
}
chomp($processor = `uname -p`);
$osInfo = $osName . " " . $processor;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you see, it does a head -n 1 /etc/issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, you might have a completly diffrent problem, but it is worth looking into.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add&amp;nbsp;set_debug_style("NA_PRINT_DONT_PARSE") (don't know the Python syntax here, but should be similar) to your code and get some verbose debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 15:07:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/98530#M1311</guid>
      <dc:creator>IST</dc:creator>
      <dc:date>2014-12-17T15:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK Issue: Couldn't find end of Start Tag netapp</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/98535#M1312</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your reply got me pointed in the right direction and I managed to find a workaround. My employer has a large security blurb in /etc/issue and I guess the API doesn't like it. Rather than changing /etc/issue, I updated the code a bit so it would be able to find my OS. For the benefit of anyone else who finds this, in NaServer.py I changed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if os.path.isfile("/etc/SuSE-release"):

    pipe = os.popen('head -n 1 /etc/SuSE-release')

else:

    pipe = os.popen("head -n 1 /etc/issue")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if os.path.isfile("/etc/SuSE-release"):

    pipe = os.popen('head -n 1 /etc/SuSE-release')

elif os.path.isfile("/etc/redhat-release"):

    pipe = os.popen('head -n 1 /etc/redhat-release')

else:

    pipe = os.popen("head -n 1 /etc/issue")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again. This has been driving me crazy for a long time.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 15:57:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-SDK-Issue-Couldn-t-find-end-of-Start-Tag-netapp/m-p/98535#M1312</guid>
      <dc:creator>salalonde</dc:creator>
      <dc:date>2014-12-17T15:57:27Z</dc:date>
    </item>
  </channel>
</rss>

