Closed shippo-lueders closed 2 months ago
@Cyberuben I'm about to merge that PR and didn't want this to get lost, I'll be looking into this today
Thank you for keeping track of this. It seems like even with this PR this causes issues.
I didn't dig in any further, I assumed the errors might've been caused by the version upgrade since the last release seemed to line up just with me attempting to use it, but the problem might be more complex than this.
yeah, the root problem here is that our API spec defines location
in the tracking history as required - https://docs.goshippo.com/shippoapi/public-api/#operation/GetTrack!c=200&path=tracking_history/location&t=response
but it's not, at least as part of the history. what I don't know is whether location is required as part of the top level tracking_status - https://docs.goshippo.com/shippoapi/public-api/#operation/GetTrack!c=200&path=tracking_status/location&t=response
I'm going to track this down , will provide an update tomorrow at the latest
okay, confirmed location is not actually required. spec has been updated and a new package has been published. if you run into any more issues, let us know!
I'm not sure if the zod
error would be resolved by this though.
no, this specifically addresses the SDKValidationError: Response validation failed
issue.
re: zod, it's listed as a peer dependency so will not be pulled in automatically. I'm going to talk to my team about this, either we need to move this to a non-peer dep or we need to update the docs and explain this dependency will be required by consumers and the rationale.
Thanks for the info!
When I manually install Zod, I get the following error when trying to get tracking info:
Originally posted by @Cyberuben in https://github.com/goshippo/shippo-javascript-sdk/issues/12#issuecomment-2083971856