question

chakradar-raju12876 avatar image
chakradar-raju12876 asked ·

Trying to access recording returns 404

Trying to download 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?

call recording404
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

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)
    }
}


8 comments
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

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?

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ chakradar-raju12876 ·

Where is your code snippet? Also, does this happen to all call recordings you have or just one of the recordings?

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Work together.
From anywhere.

Team messaging, video meetings
and phone - all in one app.


Get the new RingCentral app