Reputation: 161
I am implementing Agora cloud recording via RESTful API. I have already contacted with Agora support and with my appid and they confirmed that recording service is enable. But when I am trying in postman to get the resourceId
I always get resourceId
is null and 400 response. I have studied tons of documents but did not get the solution.
prerequisites done:
cname
: channel name is correctuid
: I have used a uid
and tried also automatic uid
after join the channelappid
: appid
is definitely correctApp URL:
https://api.agora.io/v1/apps/244e87editedlittlebit1b645/cloud_recording/acquire
Method: POST
Auth: basic
Content-Type: application/json;charset=utf-8
response body:
{
"cname":"11493098",
"uid": "2398640696",
"clientRequest":{}
}
Basic Auth with REST API credentials (customer ID as username, customer certificate as password)
response body:
{
"cname":"11493098",
"uid": "2398640696",
"clientRequest":{}
}
response:
{
"resourceId": "",
"code": 400
}
{
"resourceId": "",
"code": 400
}
I expect the resource ID which is needed to start the recording but I am always getting resourceID
is null and code 400(which means input wrong)
If anyone tell me the cause It will be very much help for me. I appreciate any clue.
Upvotes: 3
Views: 1132
Reputation: 1
Make sure you enable cloud recording in both versions of console, I got similar error when I enable it in https://console.agora.io/v2, but when I open old version https://console.agora.io/ I found out that cloud recording wasn't enabled. After fallow all steps https://docs.agora.io/en/cloud-recording/cloud_recording_rest#enable-cloud-recording it start working
Upvotes: 0
Reputation: 51
Your request seems fine, can you please check if your cloud recording is enabled or not. if not then enable cloud recording from your app's cloud recording menu. You can follow these steps: https://docs.agora.io/en/cloud-recording/cloud_recording_rest#enable-cloud-recording
Thank you
Upvotes: 2