Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

UPS tracking details doesn't handle brand new packages? #112

Open
mperham opened this Issue · 3 comments

3 participants

@mperham

We have a shipment where UPS is returning this:

<?xml version="1.0"?>
<TrackResponse><Response><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription>Success</ResponseStatusDescription></Response><Shipment><Shipper/><ShipmentWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>0.00</Weight></ShipmentWeight><Service><Code>03</Code><Description>UPS GROUND</Description></Service><ShipmentIdentificationNumber>1ZR08E820311157913</ShipmentIdentificationNumber><Package><TrackingNumber>1ZR08E820311157913</TrackingNumber><PackageWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>0.00</Weight></PackageWeight></Package></Shipment></TrackResponse>

I suspect this is a brand new shipment where UPS doesn't have any detail in its database yet. It causes a undefined method 'get_text' for nil:NilClass error here:

https://github.com/Shopify/active_shipping/blob/master/lib/active_shipping/shipping/carriers/ups.rb#L341

@arthurnn
Collaborator

Thanks for the report, I will take a look into this issue.

@arthurnn arthurnn was assigned
@csaunders
Collaborator

@arthurnn did you get anywhere with this?

@arthurnn
Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.