1

"Invalid: both tf and tt are required"

Тема: "Invalid: both tf and tt are required"

I posted this to https://logistics.wialon.com/api/route:

[data={"itemId":400267072,"orders":[{"itemId":400267072,"id":0,"n":"2021-05-27-03-42-Start","p":{"n":"Tropical Banana Company","p":"","p2":"","e":"","a":"34 Market St","v":0,"w":0,"c":0,"ut":60,"t":"","d":"","uic":"","cid":"","cm":"","aff":"","z":"","ntf":0,"pr":0,"tags":[],"r":{"id":0,"i":"0","m":0,"t":0,"ndt":0,"vt":1622113200}},"rp":"","f":1,"tf":1622088000,"tt":1622174340,"trt":60,"r":50,"y":42.395352,"x":-71.049357,"u":400064618,"s":0,"cid":null,"callMode":"create"}],"routeId":0,"callMode":"create"}] [resourceId=400267072] [token=<MY TOKEN>] [unitId=400064618]
and got this:


{"detail": "Parse error", "errors_detail": {"errors_count": 4, "msgs": ["Invalid: both tf and tt are required", "Invalid: both tf and tt are required", "Invalid: both tf and tt are required", "Invalid: both tf and tt are required"], "errors_at": [0, 1, 2, 3]}, "error": -1}

tf is set to 2021-05-27 00:00 EDT
tt is set to 2021-05-27 23:57 EDT
vt is set to 2021-05-27 07:00 EDT

1. It appears that all times are valid Unix times.
2. There is only one order. Why does the error state that there are four errors?

2

"Invalid: both tf and tt are required"

Re: "Invalid: both tf and tt are required"

I have found a workaround for this problem. No response required.