sync error when komoot activity contains gif
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..
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.
To be fair, it's not really supported 😅 i kind of hacked it by uploading a gif with removed file extension ;)
Fixed in v0.16.3.
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?
It should not throw an error. Can you please post it?
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
It would help, but the activity is private.
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.