TrackChecker

Форум, посвященный программе TrackChecker
TrackChecker FAQ Сайт программы
Last visit was: Tue Apr 16, 2024 3:30 pm It is currently Tue Apr 16, 2024 3:30 pm

All times are UTC + 3 hours




 [ 2 posts ] 
Author Message
PostPosted: Sat Apr 18, 2020 8:22 pm 
Offline

Joined: Sat Apr 18, 2020 7:44 pm
Posts: 6
Has thanked: 0 time
Been thanked: 0 time
Greetings!

It seems with every package delivered to me by PostNord (no_pnord), some of the events are corrupted in TrackChecker (mobile and desktop), and end up with JSON snippets in the user interface. For an example, I'll use 373325382260819679, which was delivered to me recently. Two of the events in the UI are corrupted, and look like this:

2020-04-16 16:47:00
Code:
Melding om at sendingen er på vei sendt","eventType":"ADV"},{"eventTime":"2020-04-16T18:19:00","eventCode":"3","eventDescription":"Lastet opp for videretransport, LIER, 3400


2020-04-17 14:39:00
Code:
Melding til mottaker sendt pr e-post","eventType":"ADV"},{"eventTime":"2020-04-18T15:27:00","eventCode":"6","eventDescription":"Levert mottaker, ANDEBU, 3158


For those who don't speak moonspeak Norwegian, the first message says first "Message that the package is on its way has been sent" and then "Loaded on truck for transport", and the second says first "Message to recipient sent by e-mail", then "Delivered to recipient".

My first thought is these two events each consist of the data from two different actual event (message sent + loaded on truck, and message sent + delivered). The existence of mismatched curly brackets in the text supports this conclusion.

So I went to PostNord, made an account, and checked out the JSON from their API. It looks good, and apart from the localized eventDescription field, it looks exactly the same in Norwegian (no_pnord) and Swedish (se_post). se_post gives the correct events in TrackChecker Mobile as well as TrackChecker Desktop. In fact, se_post gives two events where no_pnord only gives one that appears merged from those two, lending further credence to my theory.

In sum, it seems the parsing of JSON from no_pnord in TrackChecker is doing something it shouldn't do, and ends up merging events occasionally.


(One interesting thing (and slightly off-topic) is the JSON from PostNord does not match the JSON in TrackChecker - TrackChecker has the field eventType, which does not exist in the PostNord schema, and the location field from the PostNord schema is not present in TrackChecker.)


Top
  
 
PostPosted: Sat Apr 18, 2020 11:58 pm 
Offline

Joined: Mon Jan 11, 2016 4:12 pm
Posts: 3270
Has thanked: 46 times
Been thanked: 552 times
Hello! Thank you for report! Will fix PostNord Norway in next update.


Top
  
 
 [ 2 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: Claude [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group