<?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: When I try to get a list of files I get a nil in response (Swift 5) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447759#M23316</link>
    <description>&lt;P&gt;I even created a new application in AppConsole, made the necessary changes to the Xcode project, but I still get the same error...&lt;BR /&gt;API auth error - {&lt;BR /&gt;".tag" = "missing_scope";&lt;BR /&gt;"required_scope" = "files.metadata.read";&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 06:53:06 GMT</pubDate>
    <dc:creator>VyacheslavB</dc:creator>
    <dc:date>2020-08-24T06:53:06Z</dc:date>
    <item>
      <title>When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/446819#M23289</link>
      <description>&lt;P&gt;I have a simple method where I want to get a list of the user's files. I took the implementation of this method from your PhotoWatch example. I also added a print at each step to track each step. But when I try to get a response, I get a nil. What's wrong? This user definitely has files in his Dropbox.&lt;/P&gt;
&lt;P&gt;I would be grateful for help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-20 at 12.06.12.png" style="width: 774px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17422i12F16C2CB7FB8BE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-20 at 12.06.12.png" alt="Screen Shot 2020-08-20 at 12.06.12.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 09:17:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/446819#M23289</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-20T09:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/446938#M23291</link>
      <description>&lt;P&gt;The response method is given both a "response" and "error" object. If "response" isn't set, you should check "error" to see what went wrong with the call.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 14:56:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/446938#M23291</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-20T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447125#M23298</link>
      <description>&lt;P&gt;I handled the error, the problem was with individual scopes. I have selected the options I want and now I get another error.&lt;/P&gt;&lt;P&gt;API auth error - {&lt;BR /&gt;".tag" = "missing_scope";&lt;BR /&gt;"required_scope" = "files.metadata.read";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-21 at 10.02.54.png" style="width: 840px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17442iB5C8CD86ABFE1567/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-21 at 10.02.54.png" alt="Screen Shot 2020-08-21 at 10.02.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 07:09:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447125#M23298</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-21T07:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447250#M23300</link>
      <description>&lt;P&gt;The 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:54:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447250#M23300</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-21T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447751#M23314</link>
      <description>&lt;P&gt;I created a new token for this account, but I still get this error. It's strange that when&amp;nbsp;I log into the application with this account, I see an another token in the Xcode console. I also try to log into the application under other Dropbox accounts and still get this error.&amp;nbsp;Also I tried disabling all active tokens for this app, but it didn't work.&lt;BR /&gt;I can't understand what I'm doing wrong, can you explain in more detail what I should do?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-24 at 08.59.02.png" style="width: 620px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17481iEC2218CB47AAA244/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-24 at 08.59.02.png" alt="Screen Shot 2020-08-24 at 08.59.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 06:27:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447751#M23314</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-24T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447758#M23315</link>
      <description>&lt;P&gt;I also noticed that although I have checked the boxes for files.content.read and files.metadata.read, the application for some reason does not request access to them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-24 at 09.58.36.png" style="width: 645px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17483iEDE40F094B7C3E18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-24 at 09.58.36.png" alt="Screen Shot 2020-08-24 at 09.58.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_2013.PNG" style="width: 562px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17482i1B16698A50FF7127/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_2013.PNG" alt="IMG_2013.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 06:59:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447758#M23315</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-24T06:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447759#M23316</link>
      <description>&lt;P&gt;I even created a new application in AppConsole, made the necessary changes to the Xcode project, but I still get the same error...&lt;BR /&gt;API auth error - {&lt;BR /&gt;".tag" = "missing_scope";&lt;BR /&gt;"required_scope" = "files.metadata.read";&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 06:53:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447759#M23316</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-24T06:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447892#M23321</link>
      <description>&lt;P&gt;When enabling a new scope for an app, make sure you click the "Submit" at the bottom of the page, or else the changes won't take effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, when configuring the app authorization flow, be sure to specify the particular scopes you want to request. When using SwiftyDropbox, that's done by making a&amp;nbsp;ScopeRequest object with the desired scopes in the "scopes" parameter,&amp;nbsp;and passing that to&amp;nbsp;authorizeFromControllerV2 &lt;A href="https://github.com/dropbox/SwiftyDropbox#begin-the-authorization-flow" target="_self"&gt;as shown here&lt;/A&gt;. That example only includes "account_info.read", but you would want to add "files.metadata.read" to that list, for example.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 15:18:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447892#M23321</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-24T15:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447919#M23323</link>
      <description>&lt;P&gt;At what moment should I create a ScopeRequest object?&lt;BR /&gt;I try to do this in the Action of the Login button, but at the time of authorization after clicking Alloy, I receive an Error: Optional("Auth flow failed because of inconsistent state.")&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-24 at 19.17.53.png" style="width: 866px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17500i178E714C1760ED36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-24 at 19.17.53.png" alt="Screen Shot 2020-08-24 at 19.17.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 16:18:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447919#M23323</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-24T16:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447925#M23325</link>
      <description>&lt;P&gt;You just need to create the&amp;nbsp;ScopeRequest object before calling the authorizeFromControllerV2 method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the error, make sure you're only calling the authorizeFromControllerV2 method once. In your screenshot, I see you're calling&amp;nbsp;authorizeFromControllerV2, and then are also calling a method of your own called "openDropboxAutorization". Are you also calling an authorize method from inside "openDropboxAutorization" by any chance?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 17:16:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447925#M23325</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-24T17:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: When I try to get a list of files I get a nil in response (Swift 5)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447935#M23327</link>
      <description>&lt;P&gt;Yes, you are right, I created ScopeRequest twice. Sorry for my carelessness. I finally got a list of files! I am very glad)) Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 18:12:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-I-try-to-get-a-list-of-files-I-get-a-nil-in-response-Swift/m-p/447935#M23327</guid>
      <dc:creator>VyacheslavB</dc:creator>
      <dc:date>2020-08-24T18:12:43Z</dc:date>
    </item>
  </channel>
</rss>

