401 with errorcode 300 when downloading transcript using download_token

We are listening to the recording.transcript_completed event to download transcripts.

once the webhook is received, when trying to download the transcript from response.payload.recording_files[0].download_url using the token response.download_token, we intermittently get the error [{"status":false,"errorCode":300,"errorMessage":"Forbidden"}]
We add the token as a Bearer token header.

This does not happen all the time, only occasionally…
If I retry the download at a later point of time, it works.

What causes this?

Hey @developer-rocketlane ,

It’s odd that this is happening intermittently - I can’t say I’ve encountered this myself, but I was able to find some articles/posts describing this issue/similar issues:

It sounds like this is related to the download_token expiring or being invalid for some reason. How much later are you retrying this when its successful? When you retry this, are you using the same download_token flow, or are you providing an OAuth token as described in the first article above?

We are using the download_token flow, and NOT the Oauth token flow…

We are trying it immediately after the webhook is received… so there is no way the token has expired.
Also, as I’d mentioned, if I retry at a later point of time using the same download_token, the download succeeds…

Any thoughts on this folks ?
Facing this pretty regularly.

@gianni.zoom @ojus.zoom @chunsiong.zoom @donte.zoom

Hi @developer-rocketlane how much later are you trying to redownload? Have you kept track of the webhook ids when you’ve experienced this? We can take a look on our end depending on how old the webhooks are.

Right now we have given a programmatic 5 second delay to retry the download…
And the download goes through…

Hi @developer-rocketlane , okay I believe there is a slight delay between data and system servers so the download may not be instantaneously available. 5 seconds is appropriate.