Skip to main content
Question

Why does RC return 404 when trying to access recording?

  • January 19, 2021
  • 2 replies
  • 277 views

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?

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • January 19, 2021

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



  • Author
  • New Participant
  • January 20, 2021

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?