<?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 Get empty response to read a file - FileInfo({}) in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Get-empty-response-to-read-a-file-FileInfo/m-p/448302#M42855</link>
    <description>&lt;P&gt;I'm trying to use this example to read a file but getting always an empty response (tried multiples files), is it my code or something else is missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from netapp_ontap import HostConnection
from netapp_ontap.resources import FileInfo

with HostConnection("&amp;lt;mgmt-ip&amp;gt;", username="admin", password="password", verify=False):
    resource = FileInfo("54c06ce2-5430-11ea-90f9-005056a73aff", path="aNewFile")
    resource.get(byte_offset=0, length=100)
    print(resource)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response that I get is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;FileInfo({})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that response right?&lt;BR /&gt;&lt;BR /&gt;python version:&amp;nbsp;3.9.16&lt;BR /&gt;&lt;SPAN&gt;netapp-ontap version: &lt;/SPAN&gt;9.13.1.0&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 23:49:57 GMT</pubDate>
    <dc:creator>felipec</dc:creator>
    <dc:date>2023-10-19T23:49:57Z</dc:date>
    <item>
      <title>Get empty response to read a file - FileInfo({})</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Get-empty-response-to-read-a-file-FileInfo/m-p/448302#M42855</link>
      <description>&lt;P&gt;I'm trying to use this example to read a file but getting always an empty response (tried multiples files), is it my code or something else is missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from netapp_ontap import HostConnection
from netapp_ontap.resources import FileInfo

with HostConnection("&amp;lt;mgmt-ip&amp;gt;", username="admin", password="password", verify=False):
    resource = FileInfo("54c06ce2-5430-11ea-90f9-005056a73aff", path="aNewFile")
    resource.get(byte_offset=0, length=100)
    print(resource)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response that I get is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;FileInfo({})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that response right?&lt;BR /&gt;&lt;BR /&gt;python version:&amp;nbsp;3.9.16&lt;BR /&gt;&lt;SPAN&gt;netapp-ontap version: &lt;/SPAN&gt;9.13.1.0&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 23:49:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Get-empty-response-to-read-a-file-FileInfo/m-p/448302#M42855</guid>
      <dc:creator>felipec</dc:creator>
      <dc:date>2023-10-19T23:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get empty response to read a file - FileInfo({})</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Get-empty-response-to-read-a-file-FileInfo/m-p/448317#M42856</link>
      <description>&lt;P&gt;You can use curl with a Swagger-formed command to see if the response is consistent.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 03:08:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Get-empty-response-to-read-a-file-FileInfo/m-p/448317#M42856</guid>
      <dc:creator>elementx</dc:creator>
      <dc:date>2023-10-20T03:08:54Z</dc:date>
    </item>
  </channel>
</rss>

