OAuth token refresh response is sometimes slow (up to 95 seconds!)

Description
We’re seeing instances of calls to refresh OAuth tokens that are taking longer to process. The worst one looks to be around 95 seconds to get a response back from the server. According to our metrics this started around 7/14 and has been continuing to be slow over the last week.

Is this a known issue? Can this be addressed?

Error
Long response times for OAuth refresh requests.

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

Which Endpoint/s?
https://zoom.us/oauth/token?grant_type=refresh_token

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

  1. Create OAuth app
  2. Get OAuth token
  3. Attempt to refresh the token
  4. Observe occasional response times that are seconds to tens of seconds long.

Screenshots (If applicable)
p95 Response Times times for calls to OAuth refresh

Additional context
We could add in a timeout to these requests but is that going to mess up the token refresh process? The API only seems to support using a refresh token a single time so I am wary about putting in any sort of short-circuit that will timeout requests to try again as it may blow up the token and I will need customer user intervention to get a new one.

Hey @smurray,

Thanks for letting us know, we are looking into the issue. (ZOOM-178700)

I will provide updates as soon as I get them.

-Tommy

Hey @smurray,

After our engineers looked into the issue, the believe it is due to slow network connection on your end.

Are you still seeing this issue? If so, can you check your network connection?

Thanks,
Tommy

@tommy

Circling back on this. The refresh times we were seeing were on AWS EC2 instances. I didn’t see anything else in the logs that would have signified a slow network connection or network throttling.

I have not seen this long of delays but we do see occasional OAuth refresh responses that take multiple seconds to return.

Hey @smurray,

Thanks for the additional info. During peak usage it is possible the API could respond in a couple seconds. Please let us know if you see long response times in the future. :slight_smile:

-Tommy