matveynator / chicha-timekeeper-v1

Chicha: the competition timekeeper (chronograph).
Other
2 stars 1 forks source link

time.ParseInLocation ERROR: parsing time "" as "2006/01/02 15:04:05.000": cannot parse "" as "2006" #24

Open matveynator opened 2 years ago

matveynator commented 2 years ago

джастин, [01.10.21 16:50] Вот, lap.DiscoveryTime вообще пустой был. Кто-то отправляет с пустой датой пакеты

Tvey Minator, [01.10.21 16:50] причем в xml формате

Tvey Minator, [01.10.21 16:50] раз до него доходит

джастин, [01.10.21 16:51] Нужно логирование настроить таких пакетов, чтобы понять откуда они такие красивые приходят

matveynator commented 2 years ago
Welcome to CHICHA, the competition timekeeper (chronograph)!
https://github.com/matveynator/chicha
Loading chicha.conf configuration...
Connected to database at localhost 5432 with database name = chicha and user = postgres
Creating or changing database structures (applying migrations)...
Started RFID data listener at 0.0.0.0:4000 with laps save interval = 1 and lap minimal duration = 30 seconds
Starting API server at: 0.0.0.0:8000
[GIN] 2021/10/01 - 12:10:26 | 200 |    6.652637ms |    192.168.96.5 | GET      "/api/laps/results/byraceid/2"
[GIN] 2021/10/01 - 12:10:28 | 200 |    8.030304ms |    192.168.96.5 | GET      "/api/laps/results/byraceid/1"
[GIN] 2021/10/01 - 12:48:39 | 200 |    2.987218ms |    192.168.96.5 | GET      "/api/laps/last"
time.ParseInLocation ERROR: parsing time "" as "2006/01/02 15:04:05.000": cannot parse "" as "2006"
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067232, 1
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067316, 1
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067397, 1
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067488, 2
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067559, 1
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067638, 1
NEW DATA from IP 127.0.0.1 - 100008020200000100000213, 1633087067717, 1
Saved! tag: 100008020200000100000213, lap: 0, lap time: 0, total time: 0 
lap: 0, tag: 100008020200000100000213, position: 1, start#: 0, time: 0, gap: 0, best lap: 0, strange?: 0