title: Agora cloud recording not saving video to S3
body: <p>I'm trying to connect cloud recording from this tutorial (<a href="https://docs.agora.io/en/cloud-recording/cloud_recording_api_rest?platform=RESTful#recordingConfig" rel="nofollow noreferrer">Agora Cloud Recording RESTful API</a>) and getting 404 error on /v1/apps/{appid}/cloud_recording/resourceid/{resourceid}/sid/{sid}/mode/{mode}/query request, and video not saved to AWS s3 bucket</p>
  <p>Steps:</p>
  <p>1 - POST: <a href="https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/acquire" rel="nofollow noreferrer">https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/acquire</a></p>
  <p>Post body raw :</p>
  <pre><code>{
    &quot;cname&quot;: &quot;post39989_channel&quot;,
    &quot;uid&quot;: &quot;206666&quot;, # &lt;- this is uniq id in channel
    &quot;clientRequest&quot;: {}
  }
  </code></pre>
  <p>receiving</p>
  <pre><code>{
   &quot;resourceId&quot;: &quot;nUwxxxx....xxxxxVTXt&quot;
  }
  </code></pre>
  <p>2 - POST: <a href="https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/mode/mix/start" rel="nofollow noreferrer">https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/mode/mix/start</a></p>
  <pre><code>{
  &quot;cname&quot;: &quot;post39989_channel&quot;,
  &quot;uid&quot;: &quot;206666&quot;, # &lt;- this is uniq id in channel
  &quot;clientRequest&quot;: {
  &quot;recordingConfig&quot;: {
    &quot;channelType&quot;:1,
    &quot;maxIdleTime&quot;: 100,
    &quot;transcodingConfig&quot;: {
      &quot;width&quot;: 640,
      &quot;height&quot;: 480,
      &quot;fps&quot;: 30,
      &quot;bitrate&quot;: 1500,
      &quot;backgroundColor&quot;: &quot;#fff000&quot;  
    },
    &quot;subscribeVideoUids&quot;:[&quot;20&quot;], # &lt;- this is id of user who will stream 
    &quot;subscribeAudioUids&quot;:[&quot;20&quot;]
  },
  &quot;storageConfig&quot;: {
    &quot;accessKey&quot;: &quot;AxxxxxxY&quot;,
    &quot;secretKey&quot;: &quot;2xxxxxxg&quot;,
    &quot;region&quot;: 0, # US East (N. Virginia) us-east-1
    &quot;bucket&quot;: &quot;my-bucket-name&quot;,
    &quot;vendor&quot;: 1, # S3
    &quot;fileNamePrefix&quot;: [
      &quot;agoraraw&quot;
    ]
  }
  }
  }
  </code></pre>
  <p>receiving</p>
  <pre><code>{
  &quot;resourceId&quot;: &quot;nUwxxxx....xxxxxVTXt&quot;,
  &quot;sid&quot;: &quot;feexxxxxxx784c&quot;
  }
  </code></pre>
  <p>3 - on Web recieving token for streamer user (id=20)</p>
  <p>4 - start stream (stream works)</p>
  <pre><code>// Create a client
  this.rtc.client = AgoraRTC.createClient({mode: &quot;live&quot;, codec: &quot;h264&quot;,areaCode: ['GLOBAL']});
  </code></pre>
  <p>5 - during stream trying to call GET : <a href="https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/sid/feexxxxxxx784c/mode/mix/query" rel="nofollow noreferrer">https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/sid/feexxxxxxx784c/mode/mix/query</a></p>
  <p>and get response :</p>
  <pre><code>{
  &quot;resourceId&quot;: &quot;nUwxxxx....xxxxxVTXt&quot;,
  &quot;sid&quot;: &quot;feexxxxxxx784c&quot;,
  &quot;code&quot;: 404
  }
  </code></pre>
  <p>same response if call POST: <a href="https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/sid/feexxxxxxx784c/mode/mix/stop" rel="nofollow noreferrer">https://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/sid/feexxxxxxx784c/mode/mix/stop</a> with data:</p>
  <pre><code>{
  &quot;cname&quot;: &quot;post39989_channel&quot;,
  &quot;uid&quot;: &quot;206666&quot;,
  &quot;clientRequest&quot;: {}
  }
  </code></pre>
  <p>Any suggestions what I'm missing?</p>