124 Invalid Access Token Error When Using JWT

Using this template helps us debug your issues more effectively :slight_smile:

Description
We are using WordPress with Gravity Forms with this plugin to handle inviting users to Zoom after submitting a form.

Error

FSA All Bodies: Zoom API error when attempting registration: Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Sun, 14 Nov 2021 20:20:58 GMT
[content-type] => application/json;charset=UTF-8
[x-zm-trackingid] => v=2.0;clid=aw1;rid=WEB_fe556e517daef5442f9c546ca0cf4399
[x-content-type-options] => nosniff
[cache-control] => no-cache, no-store, must-revalidate, no-transform
[pragma] => no-cache
[expires] => Thu, 01 Jan 1970 00:00:00 GMT
[set-cookie] => Array
(
[0] => zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[1] => zm_haid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[2] => zm_tmaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[3] => zm_htmaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[4] => cred=563DF6A78BFF6B6EC82C306EA359D8C5; Path=/; Secure; HttpOnly
[5] => _zm_ctaid=Pk89tOmCTumYMVH4AWKT5Q.1636921258932.a30960d8ce27ac9333aadcd2db07e593; Domain=.zoom.us; Expires=Sun, 14-Nov-2021 22:20:58 GMT; Path=/; Secure; HttpOnly
[6] => _zm_chtaid=426; Domain=.zoom.us; Expires=Sun, 14-Nov-2021 22:20:58 GMT; Path=/; Secure; HttpOnly
)

[x-zm-zoneid] => VA
)

)

[body] => {"code":124,"message":"Invalid access token."}
[response] => Array
(
[code] => 401
[message] => Unauthorized
)

[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => zm_aid
[value] => ""
[expires] => 10
[path] => /
[domain] => zoom.us
[host_only] =>
)

[1] => WP_Http_Cookie Object
(
[name] => zm_haid
[value] => ""
[expires] => 10
[path] => /
[domain] => zoom.us
[host_only] =>
)

[2] => WP_Http_Cookie Object
(
[name] => zm_tmaid
[value] => ""
[expires] => 10
[path] => /
[domain] => zoom.us
[host_only] =>
)

[3] => WP_Http_Cookie Object
(
[name] => zm_htmaid
[value] => ""
[expires] => 10
[path] => /
[domain] => zoom.us
[host_only] =>
)

[4] => WP_Http_Cookie Object
(
[name] => cred
[value] => 563DF6A78BFF6B6EC82C306EA359D8C5
[expires] =>
[path] => /
[domain] => api.zoom.us
[host_only] => 1
)

[5] => WP_Http_Cookie Object
(
[name] => _zm_ctaid
[value] => Pk89tOmCTumYMVH4AWKT5Q.1636921258932.a30960d8ce27ac9333aadcd2db07e593
[expires] => 1636928458
[path] => /
[domain] => zoom.us
[host_only] =>
)

[6] => WP_Http_Cookie Object
(
[name] => _zm_chtaid
[value] => 426
[expires] => 1636928458
[path] => /
[domain] => zoom.us
[host_only] =>
)

)

[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => {"code":124,"message":"Invalid access token."}
[raw] => HTTP/1.1 401
Date: Sun, 14 Nov 2021 20:20:58 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: close
x-zm-trackingid: v=2.0;clid=aw1;rid=WEB_fe556e517daef5442f9c546ca0cf4399
X-Content-Type-Options: nosniff
Cache-Control: no-cache, no-store, must-revalidate, no-transform
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: zm_haid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: zm_tmaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: zm_htmaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: cred=563DF6A78BFF6B6EC82C306EA359D8C5; Path=/; Secure; HttpOnly
Set-Cookie: _zm_ctaid=Pk89tOmCTumYMVH4AWKT5Q.1636921258932.a30960d8ce27ac9333aadcd2db07e593; Domain=.zoom.us; Expires=Sun, 14-Nov-2021 22:20:58 GMT; Path=/; Secure; HttpOnly
Set-Cookie: _zm_chtaid=426; Domain=.zoom.us; Expires=Sun, 14-Nov-2021 22:20:58 GMT; Path=/; Secure; HttpOnly
x-zm-zoneid: VA

{"code":124,"message":"Invalid access token."}
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[date] => Array
(
[0] => Sun, 14 Nov 2021 20:20:58 GMT
)

[content-type] => Array
(
[0] => application/json;charset=UTF-8
)

[x-zm-trackingid] => Array
(
[0] => v=2.0;clid=aw1;rid=WEB_fe556e517daef5442f9c546ca0cf4399
)

[x-content-type-options] => Array
(
[0] => nosniff
)

[cache-control] => Array
(
[0] => no-cache, no-store, must-revalidate, no-transform
)

[pragma] => Array
(
[0] => no-cache
)

[expires] => Array
(
[0] => Thu, 01 Jan 1970 00:00:00 GMT
)

[set-cookie] => Array
(
[0] => zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[1] => zm_haid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[2] => zm_tmaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[3] => zm_htmaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
[4] => cred=563DF6A78BFF6B6EC82C306EA359D8C5; Path=/; Secure; HttpOnly
[5] => _zm_ctaid=Pk89tOmCTumYMVH4AWKT5Q.1636921258932.a30960d8ce27ac9333aadcd2db07e593; Domain=.zoom.us; Expires=Sun, 14-Nov-2021 22:20:58 GMT; Path=/; Secure; HttpOnly
[6] => _zm_chtaid=426; Domain=.zoom.us; Expires=Sun, 14-Nov-2021 22:20:58 GMT; Path=/; Secure; HttpOnly
)

[x-zm-zoneid] => Array
(
[0] => VA
)

)

)

[status_code] => 401
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://api.zoom.us/v2/meetings/84484278425/registrants
[history] => Array
(
)

[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[zm_aid] => Requests_Cookie Object
(
[name] => zm_aid
[value] => ""
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[domain] => zoom.us
[expires] => 10
[path] => /
[secure] => 1
[httponly] => 1
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] =>
)

[reference_time] => 1636921258
)

[zm_haid] => Requests_Cookie Object
(
[name] => zm_haid
[value] => ""
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[domain] => zoom.us
[expires] => 10
[path] => /
[secure] => 1
[httponly] => 1
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] =>
)

[reference_time] => 1636921258
)

[zm_tmaid] => Requests_Cookie Object
(
[name] => zm_tmaid
[value] => ""
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[domain] => zoom.us
[expires] => 10
[path] => /
[secure] => 1
[httponly] => 1
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] =>
)

[reference_time] => 1636921258
)

[zm_htmaid] => Requests_Cookie Object
(
[name] => zm_htmaid
[value] => ""
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[domain] => zoom.us
[expires] => 10
[path] => /
[secure] => 1
[httponly] => 1
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] =>
)

[reference_time] => 1636921258
)

[cred] => Requests_Cookie Object
(
[name] => cred
[value] => 563DF6A78BFF6B6EC82C306EA359D8C5
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[path] => /
[secure] => 1
[httponly] => 1
[domain] => api.zoom.us
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] => 1
)

[reference_time] => 1636921258
)

[_zm_ctaid] => Requests_Cookie Object
(
[name] => _zm_ctaid
[value] => Pk89tOmCTumYMVH4AWKT5Q.1636921258932.a30960d8ce27ac9333aadcd2db07e593
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[domain] => zoom.us
[expires] => 1636928458
[path] => /
[secure] => 1
[httponly] => 1
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] =>
)

[reference_time] => 1636921258
)

[_zm_chtaid] => Requests_Cookie Object
(
[name] => _zm_chtaid
[value] => 426
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[domain] => zoom.us
[expires] => 1636928458
[path] => /
[secure] => 1
[httponly] => 1
)

)

[flags] => Array
(
[creation] => 1636921258
[last-access] => 1636921258
[persistent] =>
[host-only] =>
)

[reference_time] => 1636921258
)

)

)

)

[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)

)

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT.

Which Endpoint/s?
Add meeting registrant (POST)

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Setup a form with Gravity Forms and this plugin
  2. Have a user fill out the form to be invited.

Screenshots (If applicable)
None available, happy to provide on request.

Additional context
We have verified the JWT API key and secret. We’ve also tested on a test event and did not have any issues. Is there some kind of rate limiting going on? The history for the JWT app shows some successful calls and lots of unsuccessful ones.

Hi @ere,

As this is not an official Zoom-supported plugin, we may be limited in the support we can offer—however, can you confirm that the account associated with your JWT credentials has a Pro or higher plan? If not, this could be part of the reason you’re getting this error, if the plugin is attempting to call an endpoint that requires a certain Zoom license.

Thanks,
Will

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