Unexpected 401 Failed to pack result on GET calendars list

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.

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

Error?
The full error message or issue you are running into, where applicable.

{
  "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

2. Authentication method or app type

Bearer token is set in the Authorization Header

3. Any errors

See above section

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.

2 Likes

@devind
Thanks for sharing your findings with the community!

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