<?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 Re: dropboxjs longpoll :  error 400 : You must issue the request to &amp;quot;notify.dropboxapi.com&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170843#M6415</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 13:56:27 GMT</pubDate>
    <dc:creator>Romain B.2</dc:creator>
    <dc:date>2016-10-05T13:56:27Z</dc:date>
    <item>
      <title>dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170840#M6412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When I'm calling the filesListFolderLongpoll() method I get the following error:&lt;/P&gt;
&lt;PRE&gt;status: 400,&lt;BR /&gt; text: 'Incorrect host for API function "files/list_folder/longpoll". You must issue the request to "notify.dropboxapi.com".'&lt;/PRE&gt;
&lt;P&gt;I'm getting a cursor with filesListFolderGetLatestCursor() and then I give the cursor I just retrieved to filesListFolderLongpoll().&lt;/P&gt;
&lt;P&gt;Here is a sample code:&lt;/P&gt;
&lt;PRE&gt;var Dropbox = require('dropbox');&lt;BR /&gt;var dbx = new Dropbox({accessToken: 'MY_ACCESS_TOKEN_HERE'});&lt;BR /&gt;dbx.filesListFolderGetLatestCursor({path: '',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recursive: false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include_media_info: false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include_deleted: false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include_has_explicit_shared_members: false&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then((last_cursor) =&amp;gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dropboxLongpoll(last_cursor.cursor);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .catch((err) =&amp;gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(error);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;BR /&gt;&lt;BR /&gt;function dropboxLongpoll(last_cursor) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbx.filesListFolderLongpoll({cursor: last_cursor, timeout: 30})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then((result) =&amp;gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(result);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // [ ... do stuff ...]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .catch((err) =&amp;gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(err);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;I'm using Dropbox javascript SDK in &lt;STRONG&gt;version 2.3.0.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Did I make any mistakes ?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170840#M6412</guid>
      <dc:creator>Romain B.2</dc:creator>
      <dc:date>2019-05-29T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170841#M6413</link>
      <description>&lt;P&gt;Moved to the API forum.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:08:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170841#M6413</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2016-10-04T19:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170842#M6414</link>
      <description>&lt;P&gt;Thanks for the report! This looks like an issue in the library itself, not how you're using it. We're looking into it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 00:19:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170842#M6414</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-05T00:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170843#M6415</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 13:56:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170843#M6415</guid>
      <dc:creator>Romain B.2</dc:creator>
      <dc:date>2016-10-05T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170844#M6416</link>
      <description>&lt;P&gt;I have got a quick and dirty fix, but I'm not to sure of the impact it has. I can submit it if necessary.&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;BASE_URL&amp;nbsp;&lt;/STRONG&gt;variable in &lt;STRONG&gt;rpc-requests.js&lt;/STRONG&gt; is set to '&lt;STRONG&gt;&lt;A href="https://api.dropboxapi.com/2/" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/&lt;/A&gt;&lt;/STRONG&gt;', so no request can be sent to &lt;A href="https://notify.dropboxapi.com/2/" rel="nofollow noreferrer"&gt;https://notify.dropboxapi.com/2/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In the &lt;STRONG&gt;DropboxBase.prototype.reques&lt;/STRONG&gt;t (dropbox-base.js) method, the '&lt;STRONG&gt;host&lt;/STRONG&gt;' parameter is not used. This parameter is properly set to 'notify' when a call to filesListFolderLongpoll() occurs but it is not given to rpcRequest. And, as I said above, BASE_URL is hard coded.&lt;/P&gt;
&lt;P&gt;Hope this can help &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:42:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170844#M6416</guid>
      <dc:creator>Romain B.2</dc:creator>
      <dc:date>2016-10-05T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170845#M6417</link>
      <description>&lt;P&gt;Thanks Romain! The team is also working on a fix here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/pull/79" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-sdk-js/pull/79&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 23:54:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170845#M6417</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-05T23:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxjs longpoll :  error 400 : You must issue the request to "notify.dropboxapi.com"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170846#M6418</link>
      <description>&lt;P&gt;Great, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 02:00:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxjs-longpoll-error-400-You-must-issue-the-request-to-quot/m-p/170846#M6418</guid>
      <dc:creator>Romain B.2</dc:creator>
      <dc:date>2016-10-06T02:00:53Z</dc:date>
    </item>
  </channel>
</rss>

