<?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: Error handling with /2/members/get_info and /2/team/groups/members/list in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221500#M11755</link>
    <description>Thank you! That's helpful. We'll look into that too.</description>
    <pubDate>Tue, 16 May 2017 20:52:20 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-05-16T20:52:20Z</dc:date>
    <item>
      <title>Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221422#M11746</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two distinct problems, but since they are similar, I figured I'd group them in the same post here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/2/members/get_info&lt;/P&gt;&lt;P&gt;If I supply a&amp;nbsp;member id that doesn't exist&amp;nbsp;this way:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "members": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ".tag": "team_member_id",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "team_member_id": "dbmid:someUserId"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a 200, with&amp;nbsp;".tag": "id_not_found". Shouldn't it be a 409? API v1 used to reply with a 404.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/2/team/groups/members/list&lt;/P&gt;&lt;P&gt;If I supply a group id that doesn't exist, I will either get a 200 with an empty "members" list, a 500 with an empty body or a 409 with&amp;nbsp;".tag": "group_not_found" depending on the invalid id I send.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I right in expecting that these should all be 409s? As above, API v1 used to reply with a 404 for all of these cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for clarifying these points.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221422#M11746</guid>
      <dc:creator>AEmery</dc:creator>
      <dc:date>2019-05-29T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221483#M11751</link>
      <description>&lt;P&gt;Thanks for writing this up!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-members-get_info" target="_self"&gt;/2/team/members/get_info&lt;/A&gt;, this is the expected behavior. A successful call will return a list of&amp;nbsp;MembersGetInfoItem, where each one is either&amp;nbsp;id_not_found or member_info. Since this endpoint can accept multiple UserSelectorArg, the call itself will return an overall success with an&amp;nbsp;id_not_found or member_info MembersGetInfoItem per input UserSelectorArg, so that it doesn't need to fail the entire call if just some of the input&amp;nbsp;UserSelectorArg are not found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-groups-members-list" target="_self"&gt;/2/team/groups/members/list&lt;/A&gt;, the expected behavior is the 409 with group_not_found. The 500 is a bug that&amp;nbsp;I can reproduce, so we'll look into that.&amp;nbsp;The&amp;nbsp;200 with an empty "members" list also isn't expected, but I can't reproduce that. Can you share a sample group ID value that gives you that?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 18:41:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221483#M11751</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-16T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221490#M11752</link>
      <description>&lt;P&gt;Yeah sure, here's more details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Dropbox&amp;nbsp;Business environment that we use for tests purposes has 3 groups as shown in the admin console or via the&amp;nbsp;&lt;SPAN&gt;/2/team/groups/list API call.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One of these groups has&amp;nbsp;"group_id": "g:57460cd2e2edd1cd000000000000001a". If I call&amp;nbsp;/2/team/groups/members/list on this group id I get, as expected, a 200 with the members listed under the "members" token in the response body.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If instead, I use&amp;nbsp;g:57460cd2e2edd1cd000000000000001&lt;STRONG&gt;b&lt;/STRONG&gt;&amp;nbsp;(which is not one of my three groups), I get this response:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Status 200 OK&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "members": [],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "cursor": "someCursor",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "has_more": false&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In fact, I can change pretty much anything in last 16 characters of the group id and I get the same empty "members" list.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 19:39:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221490#M11752</guid>
      <dc:creator>AEmery</dc:creator>
      <dc:date>2017-05-16T19:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221500#M11755</link>
      <description>Thank you! That's helpful. We'll look into that too.</description>
      <pubDate>Tue, 16 May 2017 20:52:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221500#M11755</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-16T20:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221924#M11808</link>
      <description>The issue of the incorrect 200 response with an empty members array should be fixed now. The issue of the 500 response is still being worked on, and should be fixed soon.</description>
      <pubDate>Thu, 18 May 2017 19:39:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221924#M11808</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-18T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221975#M11814</link>
      <description>The 500 should also be fixed now. Please let us know if you're still seeing any issues.</description>
      <pubDate>Fri, 19 May 2017 03:48:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/221975#M11814</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-19T03:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/223057#M11961</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just tested this and indeed I get a 409 every time, thanks for that. Strangely though, the body of the response is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "error": "No matching groups found for g:57460cd2e2edd1cd00000000000001b."
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "error": "Some groups are not on the team."
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shouldn't it be in your standard format as specified in the APIv2 documentation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="dbprettyprint literal-block prettyprint lang-None"&gt;&lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="str"&gt;"error_summary"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"to/no_write_permission/.."&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;
  &lt;SPAN class="str"&gt;"error"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="str"&gt;".tag"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"to"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="str"&gt;"to"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="str"&gt;".tag"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"no_write_permission"&lt;/SPAN&gt;
    &lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;
  &lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thanks for your input.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:34:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/223057#M11961</guid>
      <dc:creator>AEmery</dc:creator>
      <dc:date>2017-05-26T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/223095#M11968</link>
      <description>Yes, a normal structured error is expected for these API v2 endpoints we were discussing.&lt;BR /&gt;&lt;BR /&gt;It looks like you may be calling API v1 though (i.e., /1/team), based on the error messages you shared. Can you check if that's the case?</description>
      <pubDate>Fri, 26 May 2017 20:02:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/223095#M11968</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-26T20:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling with /2/members/get_info and /2/team/groups/members/list</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/223097#M11969</link>
      <description>&lt;P&gt;Yep, you are right. My bad...&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 20:05:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-handling-with-2-members-get-info-and-2-team-groups-members/m-p/223097#M11969</guid>
      <dc:creator>AEmery</dc:creator>
      <dc:date>2017-05-26T20:05:17Z</dc:date>
    </item>
  </channel>
</rss>

