title: Cloud Recoding RESTful API Error of Agora.io
body: <p>I would like to implement your Cloud Recoding of Live Broadcasting via RESTful API. I implemented it with NodeJs. Could you please help me why I get an error and how I can fix it?</p>
  
  <p>On the manual,
  "Status Code 400: The input is in the wrong format."
  But I do not know what is wrong.</p>
  
  <pre>
  error: null
  body: { resourceId: '', code: 400 }
  </pre>
  
  <pre>
  
      var plainCredentials = new Buffer.from(agoraCustomerId+":"+agoraCustomerCertificate);
      var base64Credentials = plainCredentials.toString("base64");
  
      var options = { 
      url: "https://api.agora.io/v1/apps/AGORA_APP_ID/cloud_recording/acquire", 
      method: "POST", 
      headers: { 
          "Authorization": "Basic " + base64Credentials, 
          "Content-type": "application/json;charset=utf-8" 
      }, 
      body:{ 
          "cname": "190724060650293", 
          "uid": "060716332", 
          "clientRequest": {} 
      }
      };
  
      request.post(options, function (error, response, body) { 
      console.log("error: " + error); 
      console.log("body: ", body);
      });
  
  </pre>