UnownHash / Fletchling

10 stars 3 forks source link

Add option for koji `replace` param #51

Closed kamieniarz closed 1 month ago

kamieniarz commented 5 months ago

When I use /api/v1/geofence/feature-collection/Nest?replace=%22-nest%22 I'm getting error:

INFO 2024-03-24 12:40:02 Reloading areas from koji project 'Nest'
ERRO 2024-03-24 12:40:02 Failed to load areas: invalid character '<' looking for beginning of value.

That's actually a big issue for me cause I can't duplicate some areas with same names (eg. new york -> New York) and that would require rethink my whole koji setup and rename lots of areas :(

To fix it I simply opened my url and saved content to a file that I used in config instead of koji. It works but it requires manual updates each time I change anything in koji :/

comstud commented 1 month ago

Ugh. I'm behind at looking at issues... Sorry. Will try to look at this soon.