# Error 'Duplicate key' while listing channel members or user contacts

**URL:** <https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472>\
**Category:** API and Webhooks\
**Created:** [April 16, 2020, 9:44am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472 "2020-04-16T09:44:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fhpcs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fhpcs/32/6250_2.png) [@fhpcs](https://devforum.zoom.us/u/fhpcs)\
**Post date:** [April 16, 2020, 9:44am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/1 "2020-04-16T09:44:16Z")

</div>

**Description**  
Everytime I request a user list (channel members, user contacts) with a OAuth2 user-level app token, it gives me back a constant error :

{  
“code”: -1,  
“message”: “Duplicate key {id: mHSsRjwETUOMdq28vErFPwaccountId: null, firstName: \*\*, lastName: null, displayName: **, enableE2E: 0, disableChat: 0, disableGroupHD: 0, enableSilentMode: 0, featureOptions: 206158430208, featureOptions2: 36063981927923716, featureOptions3: 6629298651490025472, featureOptions4: 16777216, featureOptions5: 281475513581568, optionList: , email: null, picUrl: /p/mHSsRjwETUOMdq28vErFPw/b673ecd4-5dee-4913-af45-4c67ba83958d-52** , title: null, company: null, officePhone: null, cellPhone: null, locale: fr-FR, jid: [mhssrjwetuomdq28verfpw@xmpp.zoom.us](mailto:mhssrjwetuomdq28verfpw@xmpp.zoom.us), myRoomId: 8326247480, myVanityName: null, myDateFormat: null, timezoneid: Europe/Paris, ltiKey: null, ltiSecret: null, hostKey: null}”  
}

I cant get rid off this error

---

<div class="post-metadata">

**Author:** ![shrijana.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shrijana.g/32/605_2.png) [@shrijana.g](https://devforum.zoom.us/u/shrijana.g)\
**Post date:** [April 17, 2020, 2:31am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/2 "2020-04-17T02:31:04Z")

</div>

Hi @fhpcs

Thank you for reporting this issue. Could you send me your Zoom Account Number along with the request body via message so that I can investigate this further?

Thank you,  
Shrijana

---

<div class="post-metadata">

**Author:** ![fhpcs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fhpcs/32/6250_2.png) [@fhpcs](https://devforum.zoom.us/u/fhpcs)\
**Post date:** [April 17, 2020, 8:50am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/3 "2020-04-17T08:50:12Z")

</div>

PM sent with details  
Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 19, 2020, 5:36am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/4 "2020-04-19T05:36:34Z")

</div>

Thanks Shrijana!

-Tommy

---

<div class="post-metadata">

**Author:** ![stefano](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stefano/32/6909_2.png) [@stefano](https://devforum.zoom.us/u/stefano)\
**Post date:** [April 24, 2020, 11:27am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/5 "2020-04-24T11:27:51Z")

</div>

I have same message error but only with channel members API request.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 28, 2020, 5:07pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/6 "2020-04-28T17:07:29Z")

</div>

Hey @stefano,

Can you please share your request url and response/error body so I can debug?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![stefano](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stefano/32/6909_2.png) [@stefano](https://devforum.zoom.us/u/stefano)\
**Post date:** [May 4, 2020, 10:49am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/7 "2020-05-04T10:49:32Z")

</div>

Now problem is gone away and API call is working…

Thanks anyway

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [May 6, 2020, 5:52pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/8 "2020-05-06T17:52:01Z")

</div>

Glad it’s working @stefano, let us know if you need any help!

---

<div class="post-metadata">

**Author:** ![fhpcs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fhpcs/32/6250_2.png) [@fhpcs](https://devforum.zoom.us/u/fhpcs)\
**Post date:** [May 12, 2020, 9:06am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/9 "2020-05-12T09:06:41Z")

</div>

Unfortunately, I still have the same issue…

Here is the error:

{“code”:-1,“message”:“Duplicate key {id: CxTzNn0QSoaSzUb-zMZJrQaccountId: BJeNeIGNRwCPRFQ-4v\_8lA, firstName: null, lastName: null, displayName: null, enableE2E: 0, disableChat: 0, disableGroupHD: 0, enableSilentMode: 0, featureOptions: 0, featureOptions2: 35184908959748, featureOptions3: 4611686018428043264, featureOptions4: 0, featureOptions5: 281474976710656, optionList: [163840,1610612736], email: null, picUrl: /p/CxTzNn0QSoaSzUb-zMZJrQ/14218c60-958d-4509-8744-b3c19789b2af-96\*\*, title: null, company: null, officePhone: null, cellPhone: null, locale: fr-FR, jid: [cxtznn0qsoaszub-zmzjrq@xmpp.zoom.us](mailto:cxtznn0qsoaszub-zmzjrq@xmpp.zoom.us), myRoomId: 6665079194, myVanityName: null, myDateFormat: null, timezoneid: Europe/Paris, ltiKey: null, ltiSecret: null, hostKey: null}”}

and the request:  
[https://api.zoom.us/v2/chat/users/me/contacts?page\_size=50&type=external](https://api.zoom.us/v2/chat/users/me/contacts?page_size=50&type=external)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 15, 2020, 11:15pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/10 "2020-05-15T23:15:02Z")

</div>

Hey @fhpcs,

Thanks for the details, our engineering team is looking into this. (ZOOM-161693)

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 18, 2020, 9:11pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/11 "2020-05-18T21:11:56Z")

</div>

Hey @fhpcs,

We have confirmed this is a bug and are working to fix it.

Stay updated here:

> **[API - Upcoming Changes - Stay Up To Date - Documentation](https://marketplace.zoom.us/docs/guides/stay-up-to-date/upcoming-changes/api)**
>
> Tentatively scheduled for May 21, 2020
> 
> Enhancements
> 
> Support for download private recordings using OAuth access token.
> 
> Account-Level Apps will need "...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 20, 2020, 4:00pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/12 "2020-05-20T16:00:45Z")

</div>

Hey @fhpcs,

The fix is currently planned to be released this weekend. (due note this timing could change).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![fhpcs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fhpcs/32/6250_2.png) [@fhpcs](https://devforum.zoom.us/u/fhpcs)\
**Post date:** [May 20, 2020, 4:16pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/13 "2020-05-20T16:16:31Z")

</div>

Nice to read it!  
Will test it next week so…

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 26, 2020, 8:11pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/14 "2020-05-26T20:11:57Z")

</div>

Hey @fhpcs,

This should be fixed. Please test and let me know if you run into any issues! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![fhpcs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fhpcs/32/6250_2.png) [@fhpcs](https://devforum.zoom.us/u/fhpcs)\
**Post date:** [May 27, 2020, 7:46am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/15 "2020-05-27T07:46:51Z")

</div>

Hi!

Yes! It’s fixed! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![wayneljw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wayneljw/32/9296_2.png) [@wayneljw](https://devforum.zoom.us/u/wayneljw)\
**Post date:** [May 27, 2020, 8:09am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/16 "2020-05-27T08:09:02Z")

</div>

Hi,

This issue still exists. Showing encoded json array below:

Array  
(  
[code] =\> -1  
[message] =\> Duplicate key {id: DJQdvFRRRdW2\_JBUDL1qWQaccountId: mkfelp7LTxKzm0k\_3YQqbw, firstName: null, lastName: null, displayName: null, enableE2E: 0, disableChat: 0, disableGroupHD: 0, enableSilentMode: 0, featureOptions: 0, featureOptions2: 35184908959748, featureOptions3: 4611686018428043264, featureOptions4: 0, featureOptions5: 281474976710656, optionList: [163840,1610612736], email: null, picUrl: /p/DJQdvFRRRdW2\_JBUDL1qWQ/6298d88e-8c1a-429a-a953-7b164587f810-82\*\*, title: null, company: null, officePhone: null, cellPhone: null, locale: , jid: [djqdvfrrrdw2\_jbudl1qwq@xmpp.zoom.us](mailto:djqdvfrrrdw2_jbudl1qwq@xmpp.zoom.us), myRoomId: 2338255704, myVanityName: null, myDateFormat: null, timezoneid: America/Halifax, ltiKey: null, ltiSecret: null, hostKey: null}  
)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 1, 2020, 10:54pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/17 "2020-06-01T22:54:47Z")

</div>

Happy to help @fhpcs! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 1, 2020, 10:54pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/18 "2020-06-01T22:54:58Z")

</div>

Hey @wayneljw,

Can you please try again?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![wayneljw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wayneljw/32/9296_2.png) [@wayneljw](https://devforum.zoom.us/u/wayneljw)\
**Post date:** [June 2, 2020, 11:49am UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/19 "2020-06-02T11:49:22Z")

</div>

@tommy

Thank you very much.  
It’s fixed.

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 4, 2020, 8:57pm UTC](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472/20 "2020-06-04T20:57:12Z")

</div>

Glad to see it’s resolved @wayneljw, let us know if there’s anything we help with 🙂

[Next page](https://devforum.zoom.us/t/error-duplicate-key-while-listing-channel-members-or-user-contacts/13472.md?page=2)
