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
Create an address with verify: true, or use createAndVerify
API returns error objects with details of verification failures, as expected.
Address verification errors are being mapped incorrectly to {"message": "API did not return error details.", "code": "NO RESPONSE CODE"} regardless of the actual error code and message returned by the API!
What was expected?
Given the following API response:
"verifications":{"zip4":{"success":false,"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address not found","suggestion":null}],"details":null},"delivery":{"success":false,"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address not found","suggestion":null}],"details":{}
Expected that Error objects should have the error codes and messages received, instead of the generic fallback of "API did not return error details." and "NO RESPONSE CODE"
Sample Code
No response
Relevant logs
address.prettyPrint():
"verifications": {
"zip4": {
"success": false,
"errors": [
{
"message": "API did not return error details.",
"code': "NO RESPONSE CODE","errors": null,"suggestion": null,"field": null } ],"details": null },"delivery": {"success": false,"errors": [ {"message": "API did not return error details.","code": "NO RESPONSE CODE","errors": null,"suggestion": null,"field": null } ],"details": {"latitude": null,"longitude": null,"time_zone": null } },
The text was updated successfully, but these errors were encountered:
Thank you again for reaching out @joshlevin . It seems we have a bug in our deserializer and are patching it in #289. We hope to have a fixed release out soon!
Software Version
6.8.0
Language Version
11
Operating System
Ubuntu Linux
What happened?
{"message": "API did not return error details.", "code": "NO RESPONSE CODE"}
regardless of the actual error code and message returned by the API!What was expected?
Given the following API response:
"verifications":{"zip4":{"success":false,"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address not found","suggestion":null}],"details":null},"delivery":{"success":false,"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address not found","suggestion":null}],"details":{}
Expected that Error objects should have the error codes and messages received, instead of the generic fallback of "API did not return error details." and "NO RESPONSE CODE"
Sample Code
No response
Relevant logs
The text was updated successfully, but these errors were encountered: