jovandeginste / workout-tracker

A workout tracking web application for personal use (or family, friends), geared towards running and other GPX-based activities
Other
940 stars 30 forks source link

FitoTrack Import no longer working "Bad Request" on upload #307

Open wills106 opened 3 hours ago

wills106 commented 3 hours ago
{"time":"2024-09-21T15:23:09.264147503+01:00","level":"INFO","msg":"Worker finished...","app":"workout-tracker","version":"master","sha":"sha_thing","module":"app","module":"worker"}
{"time":"2024-09-21T15:23:38.659099675+01:00","level":"INFO","msg":"Importing with program: fitotrack","app":"workout-tracker","version":"master","sha":"sha_thing","module":"app"}
{"time":"2024-09-21T15:23:38.659796309+01:00","level":"WARN","msg":"Bad Request","app":"workout-tracker","version":"master","sha":"sha_thing","module":"webserver","request":{"time":"2024-09-21T15:23:38.658080328+01:00","method":"POST","host":"something.com","path":"/api/v1/import/fitotrack","query":"api-key=api_key","params":{"program":"fitotrack"},"route":"/api/v1/import/:program","ip":"something.com","referer":"","length":222534},"response":{"time":"2024-09-21T15:23:38.659787586+01:00","latency":1707258,"status":400,"length":108}}
{"time":"2024-09-21T15:23:46.092908366+01:00","level":"INFO","msg":"Importing with program: fitotrack","app":"workout-tracker","version":"master","sha":"sha_thing","module":"app"}
{"time":"2024-09-21T15:23:46.093545256+01:00","level":"WARN","msg":"Bad Request","app":"workout-tracker","version":"master","sha":"sha_thing","module":"webserver","request":{"time":"2024-09-21T15:23:46.091879215+01:00","method":"POST","host":"something.com","path":"/api/v1/import/fitotrack","query":"api-key=api_key","params":{"program":"fitotrack"},"route":"/api/v1/import/:program","ip":"something.com","referer":"","length":149854},"response":{"time":"2024-09-21T15:23:46.093535842+01:00","latency":1656640,"status":400,"length":108}}

Has something changed recently with importing from FitoTrack?

It seems to upload the files ok, but then I am getting a "Bad Request" it looks like the data base is getting updated. As the last write to the database was at 15:24. But nothing it displayed in the UI. I have tried the refresh workouts and that's not made a difference.

I haven't made any changes to Workout-Tracker or FitoTrack configurations.

If I can get any more information let me know how and what you need.

What type of database is this using? Maybe I could use a database viewer to see if the workout are indeed inside there.

If I manually import the gpx from FitoTrack, it works. So I don't think FitoTrack have changed anything in the gpx?

wills106 commented 3 hours ago

Just used DB Browser for SQLite and the workouts aren't showing in gpx_data or workouts