urania-dev / snapp

Yet Another Url Shortner. A simple excercise to learn Svelte.
https://snapp.li
MIT License
210 stars 11 forks source link

Not able to add any shortcodes when tags_as_prefix is on #68

Closed LeaveitT0uchless closed 1 month ago

LeaveitT0uchless commented 1 month ago

After the last update, even when I have tag selected, it won't let me as shortcodes, just continues to give the error: This SNAPP has no prefix, please select one 2024-10-20_15-29-54

This happens as user or root. on the logs I see:

TAGS_AS_PREFIX TAGS_AS_PREFIX TAGS_AS_PREFIX TAGS_AS_PREFIX TAGS_AS_PREFIX

urania-dev commented 1 month ago

Argh, i'll see into it

LeaveitT0uchless commented 1 month ago

wait, just ran yours vanilla and it works, so let me see what's different on my end.

The only thing different I can think of right now is I'm running mariadb on RDS so let me try to see what else is different.

urania-dev commented 1 month ago

no it was just me messing with the code actually

urania-dev commented 1 month ago

building fixed, let me know

LeaveitT0uchless commented 1 month ago

going, let you know in a bit

LeaveitT0uchless commented 1 month ago

It's good now :)

However, I noticed a small bug when there is no https in the error message is:

image instead of the actual issue.

Also, is Tags on by default now? so I can delete the env from my compose.

urania-dev commented 1 month ago

damnit. i always miss something. 🗡️

if you mean tags as prefix, no it is too much of a use case, tags as a whole, yeah they are 🤔

btw, try api/qrcode/[...path]

LeaveitT0uchless commented 1 month ago

oh wait then no it's not working :( I just turned the flag on for tag as a prefix and it doesn't work, only when I don't enable it it works.

I saw your changes to qr :) I need to play with it!

LeaveitT0uchless commented 1 month ago

image

It's selected but not working. I think I need to understand the difference between the 2, not I understand what one does vs the other even after reading the changelog file

LeaveitT0uchless commented 1 month ago

What I see on browser inspect:

{type: "failure", status: 400, data: "[{"message":1},"errors.snapps.no-prefix"]"} data : "[{\"message\":1},\"errors.snapps.no-prefix\"]" status : 400 type : "failure"

urania-dev commented 1 month ago

building 0.8.7.4.1, should fix that inconvinience.

urania-dev commented 1 month ago

yeah yeah, it was me all along, i found the arcane, the code was almost correct, but i repeatedly treated the tags with id instead of slug, hence generating caos across the database.