<?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 Exception in 2/files/download: &amp;quot;unsupported_file&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604305#M28069</link>
    <description>&lt;P&gt;We are trying read content of paper file, getting below exception&lt;/P&gt;
&lt;P&gt;com.dropbox.core.v2.files.DownloadErrorException: Exception in 2/files/download: "unsupported_file"&lt;BR /&gt;at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:1278)&lt;BR /&gt;at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:1297)&lt;BR /&gt;at com.amazonaws.kendra.connector.dropbox.model.item.PocInputStreamToString.main(PocInputStreamToString.java:36)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is code we are using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxDownloader dbxDownloader= client.files().download(&lt;SPAN&gt;"/First Paper.paper"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;// Metadata metadata=client.files().getMetadata("/document.docx");&lt;BR /&gt;&lt;/SPAN&gt;    InputStream inputStream= dbxDownloader.getInputStream()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;   DataInputStream dataInputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;DataInputStream(inputStream)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;   String tmp&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;   StringBuilder inputLine=&lt;SPAN&gt;new &lt;/SPAN&gt;StringBuilder()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    while &lt;/SPAN&gt;((tmp = dataInputStream.readLine()) != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;        inputLine.append(tmp)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;//System.out.println(tmp);&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;   System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"File content---&amp;gt;"&lt;/SPAN&gt;+inputLine.toString())&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Jun 2022 06:33:18 GMT</pubDate>
    <dc:creator>sanjeev_hansanur</dc:creator>
    <dc:date>2022-06-20T06:33:18Z</dc:date>
    <item>
      <title>Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604305#M28069</link>
      <description>&lt;P&gt;We are trying read content of paper file, getting below exception&lt;/P&gt;
&lt;P&gt;com.dropbox.core.v2.files.DownloadErrorException: Exception in 2/files/download: "unsupported_file"&lt;BR /&gt;at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:1278)&lt;BR /&gt;at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:1297)&lt;BR /&gt;at com.amazonaws.kendra.connector.dropbox.model.item.PocInputStreamToString.main(PocInputStreamToString.java:36)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is code we are using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxDownloader dbxDownloader= client.files().download(&lt;SPAN&gt;"/First Paper.paper"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;// Metadata metadata=client.files().getMetadata("/document.docx");&lt;BR /&gt;&lt;/SPAN&gt;    InputStream inputStream= dbxDownloader.getInputStream()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;   DataInputStream dataInputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;DataInputStream(inputStream)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;   String tmp&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;   StringBuilder inputLine=&lt;SPAN&gt;new &lt;/SPAN&gt;StringBuilder()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    while &lt;/SPAN&gt;((tmp = dataInputStream.readLine()) != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;        inputLine.append(tmp)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;//System.out.println(tmp);&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;   System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"File content---&amp;gt;"&lt;/SPAN&gt;+inputLine.toString())&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:33:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604305#M28069</guid>
      <dc:creator>sanjeev_hansanur</dc:creator>
      <dc:date>2022-06-20T06:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604306#M28070</link>
      <description>&lt;P&gt;Similarly we are facing issue for docx,paperT and shortCut&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:07:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604306#M28070</guid>
      <dc:creator>sanjeev_hansanur</dc:creator>
      <dc:date>2022-06-20T06:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604585#M28075</link>
      <description>&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.2.0/com/dropbox/core/v2/files/DownloadError.html#UNSUPPORTED_FILE" target="_blank"&gt;The "unsupported_file" error&lt;/A&gt; means:&lt;/P&gt;
&lt;DIV class="block"&gt;
&lt;BLOCKQUOTE&gt;This file type cannot be downloaded directly; use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.2.0/com/dropbox/core/v2/files/DbxUserFilesRequests.html#export(java.lang.String)" target="_blank"&gt;&lt;CODE&gt;DbxUserFilesRequests.export(String)&lt;/CODE&gt;&lt;/A&gt; instead.&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;
&lt;P&gt;You can find more information in the documentation linked there.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 01:44:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/604585#M28075</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-21T01:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620155#M28568</link>
      <description>&lt;P&gt;is there any updates i am facing the same issue&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 11:29:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620155#M28568</guid>
      <dc:creator>mansi2821</dc:creator>
      <dc:date>2022-09-03T11:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620235#M28572</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1472263"&gt;@mansi2821&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;is there any updates i am facing the same issue&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1472263"&gt;@mansi2821&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;What you mean "the same issue"?&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Have you meet some file you can neither export nor download? What is this file type, if any, and what you are seeing on the corresponding metadata (is the file marked as downloadable there)? 🧐&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 23:57:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620235#M28572</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-03T23:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620386#M28588</link>
      <description>&lt;P&gt;hy&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i meant is i have paper doc in my dropbox account and when i try to download those documents using&amp;nbsp;dropboxClient.Files.DownloadAsync()&lt;/P&gt;&lt;P&gt;i am facing error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.AggregateException: One or more errors occurred. ---&amp;gt; Dropbox.Api.ApiException`1[Dropbox.Api.Files.DownloadError]: unsupported_file/..&lt;BR /&gt;at Dropbox.Api.DropboxRequestHandler.&amp;lt;Dropbox-Api-Stone-ITransport-SendDownloadRequestAsync&amp;gt;d__15`3.MoveNext()&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;BR /&gt;at InfinniumDropBoxConsumer.Business.InfinniumDropBoxConsumer.DownloadFile(DocumentDetailFromConnector documentDetail, Boolean dataInsight, DateTime modifiedDate, Int32 retry)&lt;BR /&gt;---&amp;gt; (Inner Exception #0) Dropbox.Api.ApiException`1[Dropbox.Api.Files.DownloadError]: unsupported_file/..&lt;BR /&gt;at Dropbox.Api.DropboxRequestHandler.&amp;lt;Dropbox-Api-Stone-ITransport-SendDownloadRequestAsync&amp;gt;d__15`3.MoveNext(); Request Id: eda9da2f079140abbcf8c81f907debd9&amp;lt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way i can download these documents&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 08:50:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620386#M28588</guid>
      <dc:creator>mansi2821</dc:creator>
      <dc:date>2022-09-05T08:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620423#M28591</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1472263"&gt;@mansi2821&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;is there a way i can download these documents&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You didn't post particular file metadata, but file type, you're referring to, is not usually downloadable, so:&lt;/P&gt;&lt;P&gt;Direct download - No.&lt;/P&gt;&lt;P&gt;Export - Yes. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 11:49:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620423#M28591</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-05T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in 2/files/download: "unsupported_file"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620740#M28621</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1472263"&gt;@mansi2821&lt;/a&gt;&amp;nbsp;I see you've also posted this in a &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/paper-document-download-unspported-error/td-p/620390" target="_blank"&gt;new thread&lt;/A&gt;, so I'll follow up with you there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For future reference, please note it is not necessary to post the same question in multiple threads.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:47:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-in-2-files-download-quot-unsupported-file-quot/m-p/620740#M28621</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-06T13:47:02Z</dc:date>
    </item>
  </channel>
</rss>

