Symptom
When attempting to archive a Vonage Video API session, you receive an HTTP 400 Bad Request response status code.
Applies To
- Vonage Video API
- Archiving
- HTTP 400
- Relayed Session
Resolution
Archiving a Session That is Already Being Archived
Attempting to initiate archiving of a session that is already being archived will result in an HTTP 400 status from the REST API call that is used to start the archive or the start_archive call issued from a Server SDK. To avoid this, register a callback URL in your Vonage Video API Account and check the status of the archiveId to determine if the archive was successfully started.
Archiving a Relayed Session
Attempting to start archiving a Relayed session will result in an HTTP 400 level status from the REST API call that is used to start the archive or the start_archive call issued from a Server SDK. To avoid this, make sure you create Routed sessions if you wish to archive a session.
Archiving Before Session Has Connections
Attempting to start archiving a session before the session has any connections will result in an HTTP 400 level status from the REST API call that is used to start the archive or the start_archive call issued from a Server SDK and it will fail to create an archive. To avoid this, sessions can be set for automatic archiving when the session is created. Alternatively, make sure at least one client has connected to the session before attempting to start archiving.
Archiving Using Different API Key and Secret
Attempting to start archiving a session using an API key and secret that is different than the key and secret that were used to generate the session ID will result in an HTTP 400 level status from the REST API call that is used to start the archive or the start_archive call issued from a Server SDK and it will fail to create an archive. To avoid this, make sure to use the same credentials for all REST, Server SDK, and token generation actions related to a project.
Additional Information
For more information on archiving, see the developer documentation
Articles in this section
- How to use Completion handler for Exception Handling
- Firefox Pre-call test not supported
- Error Creating Session Using Vonage Video API .NET SDK
- Unable to Create Session Even Though API Key and Secret Are Valid
- HTTP 415 Error When Archiving Video Session
- Troubleshooting Invalid JWT When Creating a Video Session using REST API
- Camara Still in Use after Session Disconnect on Android
- Token Shows as Invalid
- HTTP 400 Error When Archiving Video Session
- 1541 Timed out while attempting to publish Error