Closed Cyberuben closed 2 months ago
I'm confirming with the team whether address_from
is actually required; if not, I'll get our spec and SDK updated; if so, I'll file a bug report.
in terms of the inconsistent or missing data in some of these requests, you'll probably need to submit a support request, where you can provide specifics such as your account info and the specific tracking numbers in question so they can help track down what's going on.
we just released https://www.npmjs.com/package/shippo/v/2.1.3 which should fix the validation errors. closing this issue for now but feel free to re-open if you're still seeing validation failures.
I have a validation error that occurs on tracking numbers that have not been used yet. For some reason, I have this occurring on two different types of responses. It is unclear if these errors are related to errors in the input when the tracking number was created, or if this is a case the API doesn't handle correctly.
Example 1:
As you can see, on the values above, the
address_to
is set, but lacking azip
entirely. There is noaddress_from
, but the pre-transit information shows a location that does not have acity
orstate
, but does have azip
andcountry
(which are not the same as theaddress_to
.Example 2:
Just like example 1, there seems to be partial information, even transit information in this case, yet there is no
address_from
that makes sense here.Example 3:
In these cases, I don't see any information on the tracking at all, but it is giving me a validation error on
address_from
, where I think a better detailed error could be thrown, such as not having information on the tracking number altogether. The tracking number has been recorded in our database in January 2024, so its fairly recent, but not that recent.