How to handle 'bad' data from the carriers? #650
-
I have a bunch of tracking numbers from Fedex atm who are returning poorly formatted dates which Karrio is not able to handle atm. In people's opinions, how should Karrio handle this do you think? In this case for example Fedex is giving "date": "2024-08-15T00:00:00", when the code is expecting a timezone to be included -- e.g. I think it is a weird issue with a device in one of our warehouses that is causing it, but I'm not sure. But it means a bunch of tracking numbers can't be added in the mean time, and before I 'hack' it up too much myself, I thought I'd ask people's opinions on 'best practices' for handling it? Should I just add in a timezone if it is missing (and if so, go with "+0000" (or is it -0000), or try to 'infer' a timezone from neighbouring 'events' or something else in the 'header'. Or should I more gracefully 'skip' that event, and if I skip the event, should I inject an event into the history saying that there was a missing event? Or some combination of thsoe, or something else entirely? Thanks for your time. (Note I did email hello@karrio.io as well, sorry for the duplication) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
test1.json |
Beta Was this translation helpful? Give feedback.
-
Addressed in #654 |
Beta Was this translation helpful? Give feedback.
Addressed in #654