amitt001 / pygmy

An open-source, feature rich & extensible url-shortener + analytics written in Python :cookie:
https://demo.pygy.co/pygmy
MIT License
703 stars 135 forks source link

Support longer custom links and give proper error if its longer than allowed #9

Closed alexgleason closed 6 years ago

alexgleason commented 6 years ago

Hi, thanks for providing this!

I made one link and it worked. Then I tried making a second link and it didn't. It sent back a 500.

Here's my link: https://deckbox.org/sets/1977804

I tried with the name deckbox and mtgdeck, no dice.

amitt001 commented 6 years ago

@alexgleason initially I interpreted this issue wrong. The issue was with the custom URLs. In the app, max custom URL length was 8 but in DB it was only 6 so this error. I fixed it by increasing the max allowed length of custom URLs to 10 on both app and DB. Your links should work now.

Thanks for reporting.

amitt001 commented 6 years ago

It's already fixed. Closing the ticket.