You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.bandwidth.iris.sdk.IrisClientException: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ImportTnCheckerResponse><ResponseStatus><ErrorCode>5070</ErrorCode><Description>Telephone number is invalid.</Description></ResponseStatus></ImportTnCheckerResponse>
at com.bandwidth.iris.sdk.IrisClient.executeRequest(IrisClient.java:178)
at com.bandwidth.iris.sdk.IrisClient.post(IrisClient.java:100)
at com.bandwidth.iris.sdk.IrisClient.post(IrisClient.java:91)
at com.bandwidth.iris.sdk.model.ImportTnChecker.Check(ImportTnChecker.java:9)
....
After debugging I found that this is the xml payload generated via using ImportTnChecker's Check method as in the documentation:
When I try to check the phone number for importability as advised in the documentation at https://dev.bandwidth.com/numbers/guides/hostedMessaging.html#check-for-importability I always get the following exception:
After debugging I found that this is the xml payload generated via using
ImportTnChecker
'sCheck
method as in the documentation:This does not match with the example provided in the HTTP part of the documentation; the correct XML should have been:
which I tested with postman and it works.
TLDR; when we use
ImportTnChecker
as described in the documentation it simply fails due to incorrect xml marshalling!The text was updated successfully, but these errors were encountered: