Closed ChrisNolan closed 1 month ago
So, I put that code in and I believe it solved the error. I'll include it in a PR soon.
For the weirdness of the 'edge case'... I think what happened was we generated the shipping label for the customer and emailed it to them in May. They didn't actually put it on a box and give it to fedex until a couple of days ago... this confused fedex but they managed to work it through... but the tracking number is duplicated in their system....
I had asked internally if this could be an issue a couple weeks ago and they said no it has never been a problem... I believe the label should only be valid for a couple of weeks and we should give them a new label... but.... we'll see.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Add a tracker for fedex tracking number 274685452994
Expected behavior A tracker is added with the details of the delivery
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
I believe this is similar to Issue #654 but this time for the estimated delivery date. This line in 'modules/connectors/fedex/kario/providers/fedex/tracking.py'
Throws a ""code":"SHIPPING_SDK_INTERNAL_ERROR","message":"unconverted data remains: -05:00"}"
As the field has a timezone, and the format to fdate doesn't.
I believe a valid fix would be:
estimated_delivery=lib.fdate(estimated_delivery, try_formats=DATETIME_FORMATS),
Here is the full log