Voice API "Bad Request" Error When Ending Calls Immediately After Creation Voice API "Bad Request" Error When Ending Calls Immediately After Creation

Voice API "Bad Request" Error When Ending Calls Immediately After Creation

Vonage API Support

Symptom

Users receive an error type: 'BAD_REQUEST', error_title: 'Bad Request' upon trying to terminate calls shortly after initiating them.

Applies To

  • Voice API

Resolution

  1. Please wait until you have received the ringing webhook before attempting to end it.
  2. You can implement a retry mechanism in your application, such as adding retries after short timeouts if the response error status is 400.

Cause

A call cannot be cancelled until it has reached the ringing state.