401 Error on Cloud Document Download/Stream from Webhook download_url/download_token combination

API Endpoint(s) and/or Zoom API Event(s)
Recording Transcript Completed Event
Recording Completed Event

Getting 401 Unauthorized intermittently on request initiated after webhook event is sent to AWS Lambda. Following event of Recording Transcript Completed, a request is created with the provided download_url and download_token values to stream a file directly to an AWS S3 bucket. Recording Completed (.mp4 file that is processed) seems to work without fail, but Recording Transcript Completed file that is processed works only some of the time. Also when opening the resulting url provided in form of ${download_url}?access_token=${download_token} in a browser, the download completes without returning a similar 401.


ERROR	[AxiosError: Request failed with status code 401] {
  code: 'ERR_BAD_REQUEST',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    adapter: [Function: httpAdapter],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function] },
    validateStatus: [Function: validateStatus],
    headers: {
      Accept: 'application/json, text/plain, */*',
      'User-Agent': 'axios/0.27.2'
    method: 'get',
    url: '{ hidden }',
    responseType: 'stream',
    data: undefined
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 1,
      _maxListeners: undefined,
      socket: [TLSSocket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: false,
      rawHeaders: [Array],
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 401,
      statusMessage: 'Unauthorized',
      client: [TLSSocket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      responseUrl: '{ hidden }',
      redirects: [ ],
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 28,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0,
      [Symbol(RequestTimeout)]: undefined

Error above trimmed down

Hi @akrueger
Thanks for reaching out to the Zoom Developer Forum and welcome to our community.
I am happy to help here!
Are you still experiencing this issue? Is my understanding correct that you are getting a 401 error intermittently when trying to get the transcript?

Hi Elisa,

Yes, we are still getting that 401, seems to be around 50 occurrences over the past two weeks when trying to download the transcript after a recording transcript completed event is sent to our AWS lambda.