Trying to download the recording url returned by RingCentral API is returning 404.
Recording uri got from call-log api endpoint, recording.contentUri property of a call object.
https://media.ringcentral.com/restapi/v1.0/account/150025022/recording/1429863476023/content
We did attach valid access token.
Why does RingCentral return 404?
How did you download the content? Can you share some code snippet? Here is some example code using the RingCentral Node JS SDK
async function download_call_recording(){ console.log("===== download_call_recording ======") try{ const resp = await rcsdk.get("https://media.ringcentral.com/restapi/v1.0/account/1780090xx/recording/89983750xx/content") var buf = await resp.buffer(); fs.writeFile("new_recording.mp3", buf, function(){ console.log("Done") }) }catch (e){ console.log(e.message) } }
We try to download using Java client, but even curl is failing, can you check if the resource actually exists? What is the status of the resource?
Where is your code snippet? Also, does this happen to all call recordings you have or just one of the recordings?
Any update?
Unfortunately, I don't have anyway to reproduce such a problem. Can you read that call record and check the "shortRecording" value?
shortRecording field is not present is response, so recording actually exists, can api team explain why this might happen because a lot of our mutual users are complaining about this issue.
If you want I can get you more instances of such call where I see contentUri but when trying to fetch it causes 404.
There are 2 approaches for you now.
1. Open a support ticket with your account info and the session id of that call record. Someone needs to look into your account call log to investigate.
2. Check the date and time of that call record, try to find that call record from your service web (service.ringcentral.com) to see if the recording exists there and you can playback properly.
It happens to only few of them
curl -H "Authorization:Bearer " "https://media.ringcentral.com/restapi/v1.0/account/150025022/recording/1429863476023/content" > audio_file
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder