<?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 FileMetadata in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407643#M1091</link>
    <description>&lt;P&gt;Hi, i am actually developing an android app and i have a function which runs in background of my app through alarm receiver using async task and in that i access a specific file from my dropbox using dropbox file path, update it and then upload it to dropbox. So i am using&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;FileMetadata metadata &lt;/SPAN&gt;= (FileMetadata) &lt;SPAN&gt;client&lt;/SPAN&gt;.files().getMetadata(&lt;SPAN&gt;FileNdPath&lt;/SPAN&gt;);&lt;/PRE&gt;
&lt;P&gt;it works fine but sometime the problem occurs when metadata gets stuck while getting data from the specific file which only contains a few line text and is a json file. After getting stuck my whole app gets stuck while waiting for the execution to procceed. What might be the problem and how can i resolve it? Is there anyway to find if the specific file is getting much time or gets stuck so that i can start the process again?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 17:56:36 GMT</pubDate>
    <dc:creator>qazimuneeb1</dc:creator>
    <dc:date>2020-04-07T17:56:36Z</dc:date>
    <item>
      <title>FileMetadata</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407643#M1091</link>
      <description>&lt;P&gt;Hi, i am actually developing an android app and i have a function which runs in background of my app through alarm receiver using async task and in that i access a specific file from my dropbox using dropbox file path, update it and then upload it to dropbox. So i am using&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;FileMetadata metadata &lt;/SPAN&gt;= (FileMetadata) &lt;SPAN&gt;client&lt;/SPAN&gt;.files().getMetadata(&lt;SPAN&gt;FileNdPath&lt;/SPAN&gt;);&lt;/PRE&gt;
&lt;P&gt;it works fine but sometime the problem occurs when metadata gets stuck while getting data from the specific file which only contains a few line text and is a json file. After getting stuck my whole app gets stuck while waiting for the execution to procceed. What might be the problem and how can i resolve it? Is there anyway to find if the specific file is getting much time or gets stuck so that i can start the process again?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:56:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407643#M1091</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2020-04-07T17:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: FileMetadata</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407765#M1092</link>
      <description>&lt;P&gt;Can you clarify what you mean when you say the method "gets stuck"? &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String-" target="_self"&gt;The&amp;nbsp;getMetadata method&lt;/A&gt; should either return a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/Metadata.html" target="_self"&gt;Metadata&lt;/A&gt; object, if the call is successful, or otherwise raise some exception. Are neither of those happening? Are you getting any error or output in the console when this occurs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to add some additional logging as a first step for debugging this to see when/where this occurs.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 15:33:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407765#M1092</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-07T15:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: FileMetadata</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407995#M1098</link>
      <description>&lt;P&gt;Method gets stuck means it doesnot return any thing and keeps on trying to fetch metadata and it doesnot end execution but again i am saying that it happens rarely but when it happens my whole execution of app gets stuck with no result. As i am executing this in background when my app is closed so i am unable to debug it. I once caught it because i did not close my app and found out that it stuck on this method using breakpoints, it doesnot return any exception either&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 09:03:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/407995#M1098</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2020-04-08T09:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: FileMetadata</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/408118#M1101</link>
      <description>&lt;P&gt;Even if the API call itself doesn't return a result or error, we'd expect the HTTPS connection itself to eventually timeout and so the client would raise a exception for the failed connection. How long did you wait when you noticed this happening?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, can you add logging to see when this is happening? It would be useful to see if there's any pattern, e.g., if it only happens for a particular file, for instance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:59:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/FileMetadata/m-p/408118#M1101</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-08T15:59:42Z</dc:date>
    </item>
  </channel>
</rss>

