Error while calling the start POST call in Agora API

余生长醉 提交于 2020-08-10 22:50:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!