Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agora cloud recording- failed to find worker #373

Open
simdanonline opened this issue Mar 1, 2024 · 1 comment
Open

Agora cloud recording- failed to find worker #373

simdanonline opened this issue Mar 1, 2024 · 1 comment

Comments

@simdanonline
Copy link

I am trying to use cloud recording.
After calling acquire, I get the resourceId, also start also returns the Sid, uid, and resource id. But whenever I call query or stop, I get 404 error.I have tried using both aws and google storage.

Code snippet below:
const authHeader = "Basic " + base64.encode({agoraApiKey}:{agoraApiSecret});

  const body = {
  cname: channelName,
  uid,
  clientRequest: {
    token,
    storageConfig: {
      secretKey: "*****",
      vendor: 1,
      region: 5,
      bucket: "b****",
      accessKey: "*******",
      fileNamePrefix: ["video"],
    },
    recordingConfig: {
      channelType: 1,
      streamTypes: 2,
      maxIdleTime: 30,
      audioProfile: 1,
      videoStreamType: 0,
      transcodingConfig: {
        height: 640,
        width: 360,
        bitrate: 500,
        fps: 15,
        mixedVideoLayout: 1,
        backgroundColor: "#FF0000",
      },
    },
  },
};
const { data } = await axios.post(
  `https://api.agora.io/v1/apps/${agoraAppId}/cloud_recording/resourceid/${resourceId}/mode/mix/start`,
  body,
  {
    headers: {
      Authorization: authHeader,
    },
  }
);`

Then I get this response:

{"cname": "64ce638a934f", "code": 404, "resourceId": "s1pH1NB-7Cjy_hmfRaLzcG74ha3F3rG7L0RviD9tSQxEz6ekbROut-5iZ_HozZc_CawzSQ3J-jfh9Bfw_IJm4sNPIA9-uAN0", "serverResponse": {"command": "StopCloudRecorder", "payload": {"message": "failed to find worker"}, "subscribeModeBitmask": 1, "vid": "1209"}, "sid": "746d1de45d2780add6f055", "uid": "18761"}

@plutoless
Copy link
Contributor

please refer to docs here https://docs.agora.io/en/cloud-recording/get-started/getstarted
you will need to acquire first before start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants