Error creating event with a single tag via API
I'm currently playing around with the Gancio API of Gancio 1.19.1 and want to create events with a Python script. This works quite well, I can create events with or without an image - as long as I include an array with two or more tags in the POST parameters. If the array only has a single tag, there is a error 400 "Bad Request" on side of Python and an error message in the gancio.log on the gancio server: ``` 2024-09-16T11:23:57.611Z error: [EVENT ADD] tags.map is not a function TypeError: tags.map is not a function at Object._findOrCreate (/usr/local/share/.config/yarn/global/node_modules/gancio/server/api/controller/tag.js:14:30) at add (/usr/local/share/.config/yarn/global/node_modules/gancio/server/api/controller/event.js:548:36) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ``` And even more puzzling: The event is still created, with image, description, etc., but without the one tags. In the dump of the POST parameter, in both cases tags is passed as an array: ``` ..., ‘tags‘: [’Test‘, Gancio’], ... ``` works without problems, the event is created with the two tags ``` ..., ‘tags‘: [’Test"], ... ``` gives the error message. But the event is created without the tag. I don't want to rule out the possibility that I have done something wrong in the script, but what? Did I miss something? Is the problem on Gancio's side or mine? But I've tried pretty much everything and I'm at a bit clueless.
issue