API-Fehler

Wenn eine Vonage-API einen Fehler zurückgibt – beispielsweise, wenn Ihr Konto kein Guthaben mehr aufweist –, gibt die API einen Fehler im Format „ RFC 7807 “ zurück.

Hier finden Sie eine grundlegende Erläuterung des Problems, der Ursachen und der Schritte zu dessen Behebung. Sehen Sie sich das Beispiel an, um zu erfahren, wie ein „ out-of-credit “ aufgebaut ist.

Sie sollten sich wahrscheinlich schon im Vorfeld überlegen, welche Fehler Ihre Anwendung behandeln muss. Auf dieser Seite finden Sie eine Liste aller möglichen Fehler, die auftreten können, sowie eine detaillierte Erläuterung, wie diese behoben werden können.

HTTP/1.1 403 Forbidden
Content-Type: application/problem+json
Content-Language: en
{
  "type": "https://example.com/Error#out-of-credit",
  "title": "You do not have enough credit",
  "detail": "Your current balance is 30, but that costs 50.",
  "instance": "<trace_id>"
}

WhatsApp-Einrichtung

CodeInformationen
number-in-use

Beschreibung

Cannot use number because it's already in use by another deployment.

Beschluss

Use the existing deployment.

invalid-json

Beschreibung

The request body did not contain valid JSON

Beschluss

Send a JSON request body, including a Content-Type header of application/json

unprocessable

Beschreibung

Parameters were valid JSON but something was missing or wrongly formatted

Beschluss

Fix the incorrect request parameters and try again

unprocessable-profile-update

Beschreibung

Parameters were valid JSON but something was missing or wrongly formatted

Beschluss

Fix the incorrect request parameters and try again

throttled

Beschreibung

Too many requests have been made on this endpoint

Beschluss

Wait a moment and try again

verification-failed

Beschreibung

Verification step failed. Either because the provided code was incorrect or because too many attempts have been made

Beschluss

Try again with the correct OTP, or call resend-otp

conflict-deployment-state

Beschreibung

Deployment could not be modified because it is currently in a transitional state.

Beschluss

If the deployment is transitioning into the state you want it in no action is required. If the state is DELETING, no action is required as the deployment will be deleted. Otherwise, wait for the transition to complete and try again.

conflict-resend-otp

Beschreibung

Could not resend OTP because the current state of the deployment did not allow it

Beschluss

The deployment has either already finished, or is in an error state (in which case you should delete it and run it again).