APIエラー

Vonage APIがエラーを返した場合、例えばアカウントにクレジットがない場合、APIはRFC 7807フォーマットでエラーを返します。

これは、問題が何であるか、なぜそれが発生したか、それを解決するための手順の基本的な説明を提供します。クレジット不足がどのような形式で表示されるかは、例を参照してください。

アプリケーションがどのようなエラーを処理する必要があるか、前もって考えておくといいかもしれません。このページでは、発生しうるすべてのエラーのリストと、その対処方法についてのより詳細な説明を提供しています。

WhatsApp Provisioning

CodeInformation
number-in-use

Description

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

Resolution

Use the existing deployment.

invalid-json

Description

The request body did not contain valid JSON

Resolution

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

unprocessable

Description

Parameters were valid JSON but something was missing or wrongly formatted

Resolution

Fix the incorrect request parameters and try again

unprocessable-profile-update

Description

Parameters were valid JSON but something was missing or wrongly formatted

Resolution

Fix the incorrect request parameters and try again

throttled

Description

Too many requests have been made on this endpoint

Resolution

Wait a moment and try again

verification-failed

Description

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

Resolution

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

conflict-deployment-state

Description

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

Resolution

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

Description

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

Resolution

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