-
This started happening after upgrading to YOURLS 1.9. I use a Telegram bot to create short links. And after upgrading to latest update, I realized that I was getting a lot of errors. Ended up using API URL to check the issue directly in browser and realized that the server end up showing 502 Bad Gateway error if I try to reload the API URL to create a short link. It works fine on a fresh link. It works fine on Yourls admin panel. Basically if I run this:
It works fine. But if I run the URL again (now that it is added to database... It gives a 502 Bad Gateway error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That behavior isn't produced by YOURLS itself - plugin maybe ? Shortening twice gives you the following : {"status":"fail",
"code":"error:url",
"message":"http:\/\/lol.com\/% already exists in database (short URL: 127.0.0.1\/ozh.in\/j)",
"errorCode":"",
"statusCode":"",
"url":{
"keyword":"j",
"url":"http:\/\/lol.com\/%",
"title":"LOL.com - Premium category defining domain names for sale, exact match domains",
"date":"2022-05-02 20:37:19",
"ip":"127.0.0.1",
"clicks":0
}
"title":"LOL.com - Premium category defining domain names for sale, exact match domains",
"shorturl":"https:\/\/127.0.0.1\/ozh.in\/j"
} ... with a |
Beta Was this translation helpful? Give feedback.
-
1.9.1 update seems to have fixed this issue for me. Thanks! |
Beta Was this translation helpful? Give feedback.
1.9.1 update seems to have fixed this issue for me. Thanks!