Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matveynator opened this issue Oct 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@matveynator
Copy link
Owner

джастин, [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 matveynator added the bug Something isn't working label Oct 1, 2021
@matveynator matveynator added this to the version 0.3 milestone Oct 1, 2021
@matveynator matveynator self-assigned this Oct 1, 2021
@matveynator matveynator changed the title cannot parse "" as 2006 time.ParseInLocation ERROR: parsing time "" as "2006/01/02 15:04:05.000": cannot parse "" as "2006" Oct 1, 2021
@matveynator
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant