wanderer icon indicating copy to clipboard operation
wanderer copied to clipboard

sync error when komoot activity contains gif

Open elcaptain opened this issue 8 months ago • 5 comments

When a completed komoot activity has a cover image that is in gif format, syncing via the integration throws this error in the pocketbase log:

error syncing komoot tours with trails: photos: "photo_tqtuvx4elj.gif" mime type must be one of: image/jpeg, image/vnd.mozilla.apng, image/png, image/webp, image/svg+xml, image/heic, video/mp4, video/webm, video/ogg..

elcaptain avatar Apr 12 '25 18:04 elcaptain

Ugh, who at komoot thought allowing gif as an image file format was a good idea? I added a bit of a dirty workaround for this: https://github.com/Flomp/wanderer/commit/a1296ebacd5aa008601acf4e818e2554c1a843b0

If there are more image formats that komoot supports but wanderer doesn't I might need to revisit this.

Flomp avatar Apr 14 '25 12:04 Flomp

To be fair, it's not really supported 😅 i kind of hacked it by uploading a gif with removed file extension ;)

elcaptain avatar Apr 14 '25 19:04 elcaptain

Fixed in v0.16.3.

Flomp avatar Apr 15 '25 19:04 Flomp

hey @Flomp, that is amazing. thank you so much for the quick work! i have updated to 0.16.4 (as indicated in the footer) but the pocketbase logs still show an error importing the activity with the gif and then it stops, so older activities don't get imported. maybe i didn't update correctly?

elcaptain avatar Apr 25 '25 06:04 elcaptain

It should not throw an error. Can you please post it?

Flomp avatar Apr 25 '25 09:04 Flomp

sorry for the delay, i had problems with my server. I'm now running 0.16.5 and the komoot import still stops at the tour with the gif. the strange thing is I don't see an error in the pb logs anymore… Oo this is the activity with the gif if that helps: https://www.komoot.com/tour/1489028330

elcaptain avatar Jun 06 '25 11:06 elcaptain

It would help, but the activity is private.

Flomp avatar Aug 20 '25 12:08 Flomp

sorry, i've switched my profile to private. i've also deleted the gif since then. i don't think this is worth investigating further since adding the gif was extremely hacky and i doubt anyone else has figured out that it is even possible.

elcaptain avatar Aug 30 '25 10:08 elcaptain