Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Error description json to twilio-java #611

Open
DmitryNeverovich opened this issue Dec 11, 2020 · 1 comment
Open

Add Error description json to twilio-java #611

DmitryNeverovich opened this issue Dec 11, 2020 · 1 comment
Labels
difficulty: unknown or n/a fix is unknown in difficulty status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@DmitryNeverovich
Copy link

DmitryNeverovich commented Dec 11, 2020

Do you have any plans to add errorCodes and errorDescription to Twilio java library?

Twilio error codes: https://www.twilio.com/docs/api/errors
Twilio error codes json: https://www.twilio.com/docs/documents/76/twilio-error-codes.json

Reason: some twilio callbacks return only 'errorCode' without any 'error description'. Callbacks do not include 'error description'.
For example: I send twilio sms message, request was failed with error code 21408. Application received error code 21408 from twilio callback url. The callback url call does not includes error description or error message in parameters.
As workaround I requested message by SID, but I see following: "errorCode:21408" and "error_message: null".
I think more reliable to extract error message from twilio json (https://www.twilio.com/docs/documents/76/twilio-error-codes.json) and avoid additional rest call to twilio.

@JenniferMah JenniferMah added difficulty: unknown or n/a fix is unknown in difficulty status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels Dec 12, 2020
@JenniferMah
Copy link
Contributor

There is currently no plan at this time to add errorCodes and errorDescriptions to the Twilio Java library. I've nothing against it so open to a PR to add support if you see fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: unknown or n/a fix is unknown in difficulty status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

2 participants