News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Why does RC return 404 when trying to access recording?
Tags: rest api
Jan 18, 2021 at 11:14pm   •   1 replies  •  0 likes
chakradar-raju

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?

1 Answer
answered on Jan 19, 2021 at 8:36am  

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



 0
on Jan 19, 2021 at 6:55pm   •  0 likes

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?

on Jan 19, 2021 at 8:25pm   •  0 likes

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

on Jan 27, 2021 at 6:59am   •  0 likes

Any update?

on Jan 27, 2021 at 12:17pm   •  0 likes

Unfortunately, I don't have anyway to reproduce such a problem. Can you read that call record and check the "shortRecording" value?

screen-shot-2021-01-27-at-121501-pm.png

on Jan 28, 2021 at 12:57am   •  0 likes

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.

on Jan 28, 2021 at 7:14am   •  0 likes

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.

on Jan 19, 2021 at 9:53pm   •  0 likes

It happens to only few of them

on Jan 19, 2021 at 9:11pm   •  0 likes



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us