Problem:
The status code: 206 refers to an undefined status regarding the Cloud recording backend process after calling the stop request. This undefined status is due to multiple suspected events that is present on your current recording session ( SID ).
Reference: https://docs.agora.io/en/cloud-recording/reference/common-errors#status-codes
Solution:
There are 3 mains topics to check and configure to finally solve the status code: 206.
Checking the RTC channel and the related Cloud Recording key parameter "recordingConfig":
Please make sure that all users are present are publishing streams inside the channel before calling the Cloud recording's start request. Regarding the user client's published audio or video streams, please check if they are set to publish with only audio, only video or both and then check your start recording payload if it includes the matching "recordingConfig | streamTypes" value:
Reference: https://docs.agora.io/en/cloud-recording/reference/restful-api#properties-4
Checking the key parameter "storageConfig":
The storageConfig houses your bucket information and your user credentials and the status 206 may mean that one of its values are incorrect, preventing the Cloud recording uploader access to your bucket.
Key parameters to review:
"storageConfig": {
"vendor": {{StorageVendor}},
"region": {{StorageRegion}},
"bucket": "{{Bucket}}",
"accessKey": "{{AccessKey}}",
"secretKey": "{{SecretKey}}"
}
The vendor value and region value should be defined in this "Supported third-party Cloud storage and region" document while the bucket or bucket name should be displayed on your Cloud storage dashboard and the accessKey/secretKey should be defined on your account credentials.
"In any case that you're unable to review the accessKey/secretKey values then please create a new one and replace the values on your payload"
Lastly would be checking if the Cloud recording session has finally stopped:
The query request is useful for checking the current status of your Cloud recording session. An error status of 404 means that the session has finally been stopped while a status 200 OK would mean that the session is still ongoing.
After these 3 main reviews, please try starting a recording session again and check if the status 206 still persists.
"In any case that additional challenges arises then please submit a new ticket"