# Unexpected 401 Failed to pack result on GET calendars list

**URL:** <https://devforum.zoom.us/t/unexpected-401-failed-to-pack-result-on-get-calendars-list/112949>\
**Category:** API and Webhooks\
**Created:** [July 2, 2024, 8:31pm UTC](https://devforum.zoom.us/t/unexpected-401-failed-to-pack-result-on-get-calendars-list/112949 "2024-07-02T20:31:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![devind](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devind/32/37758_2.png) [@devind](https://devforum.zoom.us/u/devind)\
**Post date:** [July 2, 2024, 8:31pm UTC](https://devforum.zoom.us/t/unexpected-401-failed-to-pack-result-on-get-calendars-list/112949/1 "2024-07-02T20:31:42Z")

</div>

### Format Your New Topic as Follows:

**API Endpoint(s) and/or Zoom API Event(s)**  
_Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context._

> **[Zoom Calendar API](https://developers.zoom.us/docs/api/rest/reference/zoom-calendar/methods/#operation/ListcalendarList)**
>
> API Reference for /docs/api/rest/reference/zoom-calendar/methods

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._

Trying to retrieve a user’s calendar list but received the following 401 unauthorized response that is unexpected:

GET [https://api.zoom.us/v2/calendars/users/me/calendarList](https://api.zoom.us/v2/calendars/users/me/calendarList)

**Error?**  
_The full error message or issue you are running into, where applicable._

```auto
{
  "error": {
    "code": 401,
    "errors": [
      {
        "appCode": 0,
        "domain": "global",
        "message": "Failed to pack result",
        "reason": "unauthorized"
      }
    ],
    "message": "Failed to pack result",
    "reqId": "ZMAIL_8f93440741a0b863e6873384500dcb3c",
    "status": "UNAUTHORIZED"
  }
}

```

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Request URL / Headers **(without credentials or sensitive info like emails, uuid, etc.)** / Body_

> GET [https://api.zoom.us/v2/calendars/users/me/calendarList](https://api.zoom.us/v2/calendars/users/me/calendarList)

_2. Authentication method or app type_

> Bearer token is set in the Authorization Header

_3. Any errors_

> See above section

---

<div class="post-metadata">

**Author:** ![devind](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devind/32/37758_2.png) [@devind](https://devforum.zoom.us/u/devind)\
**Post date:** [July 2, 2024, 8:51pm UTC](https://devforum.zoom.us/t/unexpected-401-failed-to-pack-result-on-get-calendars-list/112949/2 "2024-07-02T20:51:49Z")

</div>

This appears to be because the user’s account did not have a zmail account configured. Once it was configured the API request went through as expected.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 3, 2024, 4:02pm UTC](https://devforum.zoom.us/t/unexpected-401-failed-to-pack-result-on-get-calendars-list/112949/3 "2024-07-03T16:02:50Z")

</div>

@devind  
Thanks for sharing your findings with the community!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 4, 2024, 4:03pm UTC](https://devforum.zoom.us/t/unexpected-401-failed-to-pack-result-on-get-calendars-list/112949/4 "2024-07-04T16:03:31Z")

</div>

Closed on July 4, 2024, 4:03pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
