<?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: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178277#M7177</link>
    <description>&lt;P&gt;NOTE: I removed the additional '/' from the beginning of the folder name and the problem was resolved. &amp;nbsp; What is strange is that the double '/' has been working for months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2016 00:33:49 GMT</pubDate>
    <dc:creator>John D.24</dc:creator>
    <dc:date>2016-04-25T00:33:49Z</dc:date>
    <item>
      <title>PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178275#M7175</link>
      <description>&lt;P&gt;I've been using the PHP SDK to save files programmatically for well over a year without issue. &amp;nbsp;However, just in the past few days a problem suddenly appeared that is throwing a fatal error. &amp;nbsp;I have updated the SDK with the current dropbox-sdk-php-1.1.6 files, with no change.&lt;/P&gt;
&lt;P&gt;The error occurs as I make a call to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$dbxClient-&amp;gt;createShareableLink($objFile-&amp;gt;fileFolder);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PHP Fatal error: Uncaught exception 'Dropbox\Exception_BadResponseCode' with message 'Unexpected HTTP status 301&lt;/P&gt;
&lt;P&gt;' in /~application~/includes/dropbox-sdk/Dropbox/RequestUtil.php:256&lt;BR /&gt;Stack trace:&lt;BR /&gt;#0 /~application~/includes/dropbox-sdk/Dropbox/Client.php(1034): Dropbox\RequestUtil::unexpectedStatus(Object(Dropbox\HttpResponse))&lt;BR /&gt;#1 /~application~/uploadFile.php(124): Dropbox\Client-&amp;gt;createShareableLink('//WGASC/Alvarad...')&lt;BR /&gt;#2 {main}&lt;BR /&gt; thrown in /~application~/includes/dropbox-sdk/Dropbox/RequestUtil.php on line 256&lt;/P&gt;
&lt;P&gt;Again - this has been working just fine for months until the last few days (&amp;lt;1 week).&lt;/P&gt;
&lt;P&gt;Anyone have an idea of what's going on ... and how to resolve?&lt;/P&gt;
&lt;P&gt;Thank you in-advance.&lt;/P&gt;
&lt;P&gt;-john&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178275#M7175</guid>
      <dc:creator>John D.24</dc:creator>
      <dc:date>2019-05-29T09:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178276#M7176</link>
      <description>&lt;P&gt;You mentioned uploadFileFromString, but it looks like the error is&amp;nbsp;coming from createShareableLink?&lt;/P&gt;
&lt;P&gt;Also, I notice that the path you're passing to createShareableLink has an extra leading slash. My guess is that this is the culprit... try getting rid of that leading slash to see if the problem goes away.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 00:33:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178276#M7176</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-04-25T00:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178277#M7177</link>
      <description>&lt;P&gt;NOTE: I removed the additional '/' from the beginning of the folder name and the problem was resolved. &amp;nbsp; What is strange is that the double '/' has been working for months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 00:33:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178277#M7177</guid>
      <dc:creator>John D.24</dc:creator>
      <dc:date>2016-04-25T00:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178278#M7178</link>
      <description>&lt;P&gt;My guess is that something changed on the Dropbox side to redirect paths with double slashes in them. (E.g. /foo//bar gets redirect&amp;nbsp;to /foo/bar.)&amp;nbsp;I'll&amp;nbsp;make sure the right folks take a look at this.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 00:38:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178278#M7178</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-04-25T00:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178279#M7179</link>
      <description>&lt;P&gt;This created a huge problem with our integration and we were scratching our head what is wrong. Finally landed here and now know the issue. Is there a way for drop box to inform the community when something of this sort changes? Lot of time gets wasted otherwise&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 23:53:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178279#M7179</guid>
      <dc:creator>Pankaj G.</dc:creator>
      <dc:date>2016-04-25T23:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178280#M7180</link>
      <description>&lt;P&gt;Apologies for the inconvenience Pankaj! We of course never want to break apps, and we email and post on the blog whenever we are planning a breaking change or deprecation. This change in validation wasn't intended to be a breaking change though, so there wasn't any outreach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 00:17:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178280#M7180</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-26T00:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK 'Unexpected HTTP status 301' returned from Dropbox/RequestUtil.php:256</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178281#M7181</link>
      <description>&lt;P&gt;For reference, we've now reverted the behavior change, so the double slash version should work again. We do recommend only using a single slash though.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 05:04:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-SDK-Unexpected-HTTP-status-301-returned-from-Dropbox/m-p/178281#M7181</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-26T05:04:45Z</dc:date>
    </item>
  </channel>
</rss>

