问题
I am trying to make API calls to the Agora Cloud Recording API through their Postman Environment, but I am getting a 404 error during the query and stop calls. The acquire call returns a 200 response with the ResourceId and the start call also returns a 200 response with the sid.
I have enabled Cloud Recording functions from the Agora dashboard. I have also double-checked my bucket credentials. This is what the start API body looks like:
{
"cname":"bhavya",
"uid":"123",
"clientRequest":{
"token":"{{token}}",
"recordingConfig":{
"maxIdleTime":120,
"streamTypes":2,
"audioProfile":1,
"channelType":1,
"videoStreamType":0,
"transcodingConfig":{
"width":360,
"height":640,
"fps":30,
"bitrate":600,
"mixedVideoLayout":1,
"maxResolutionUid":"1"
}
},
"storageConfig":{
"vendor":{{Vendor}},
"region":{{Region}},
"bucket":"{{Bucket}}",
"accessKey":"{{AccessKey}}",
"secretKey":"{{SecretKey}}"
}
}
}
Moreover, using their interactive documentation gives me a 400 bad request error in the start step. This is the error received:
{
"code": 2,
"reason": "response detail error:2,errMsg:uid inside the List can't be convert to uint32_t!"
}
Am I missing some step while setting up the project? What could the solution be?
来源:https://stackoverflow.com/questions/63252956/error-while-calling-the-start-post-call-in-agora-api