vctr-sls / vctr Goto Github PK
View Code? Open in Web Editor NEWvctr is a self hosted short link management tool.
License: MIT License
vctr is a self hosted short link management tool.
License: MIT License
EN:
I tried to create an link via web UI, but it returned the error {"error":"invalid destination url"}
.
I also tested to create an link via httpie (a tool like curl), but it had the same error (I used the documentation for that).
My request body was valid, but I don't know why it's happening.
I also found out, that another parameter in destination works.
DE:
Ich habe versucht einen Link über das Web UI zu erstellen, aber es hat mir den Fehler {"error":"invalid destination url"}
zurück gegeben.
Ich habe es auch versucht über HTTPie (einem Werkzeug wie curl), aber habe dort den selben Fehler bekommen (ich habe die Dokumentation dafür genutzt).
Mein Request Body ist korrekt, aber ich weiß nicht warum es passiert.
Ich habe auch herausgefunden, dass wenn ich einen anderen Parameter bei destination/Ziel angebe, es funktioniert.
Request Body:
{
"ident": "vipe",
"enabled": true,
"permanent_redirect": false,
"total_access_limit": 0,
"destination": "https://vipecity.de"
}
HTTPie Command:
https post s.*********.**/api/links Authorization:******************************** destination="https://vipecity.de" ident="vipe" -v
Add a login error message when entering a wrong username-password combination.
Implementation of API keys to access the REST API via those.
This might also be bound to a new permission CREATE_API_TOKEN
.
I try to create a user with the name test
and everytime I click on Create
I get an unexpected error. If I look into the console, I get an error 400.
My docker-compose file:
version: "3"
services:
x0-db:
image: "postgres"
container_name: "x0-db"
restart: always
expose:
- "5432"
volumes:
- "./data/db:/var/lib/postgresql/data"
environment:
POSTGRES_USER: "vctr"
POSTGRES_PASSWORD: "nope"
networks:
- "x0"
x0-redis:
image: "redis"
container_name: "x0-redis"
restart: always
expose:
- "6379"
networks:
- "x0"
x0-gw:
build:
context: './src/'
dockerfile: './Gateway/Dockerfile'
image: "zekro/vctr-gw"
restart: always
expose:
- "80"
environment:
VCTR_CONNECTIONSTRINGS__POSTGRES: "Host=x0-db;Database=vctr;Username=vctr;Password=nope"
VCTR_INITIALIZATION__ROOTUSERNAME: "nope"
VCTR_INITIALIZATION__ROOTUSERPASSWORD: "nope"
VCTR_CACHING__DURATION: "30.00:00:00"
VCTR_CACHING__REDIS__SERVERS: "x0-redis:6379"
VCTR_CACHING__REDIS__DATABASE: 2
VCTR_ROUTING__ROOT: "https://x0.tf"
VCTR_ROUTING__NOTFOUND: "/ui/notfound"
VCTR_ROUTING__PASSWORD: "/ui/password"
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.x0-gw.rule=Host(`x0.tf`)"
- "traefik.http.routers.x0-gw.entrypoints=web-secured"
- "traefik.http.routers.x0-gw.tls"
networks:
- "x0"
- "web"
x0-fe:
build:
context: './src/'
dockerfile: './WebApp/Dockerfile'
image: "zekro/vctr-fe"
restart: always
expose:
- "80"
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.x0-fe.rule=Host(`x0.tf`) && PathPrefix(`/ui`)"
- "traefik.http.routers.x0-fe.entrypoints=web-secured"
- "traefik.http.routers.x0-fe.tls"
- "traefik.http.routers.x0-fe.middlewares=x0-fe-stripprefix"
- "traefik.http.middlewares.x0-fe-stripprefix.stripprefix.prefixes=/ui/"
networks:
- "x0"
- "web"
networks:
x0:
driver: bridge
web:
external:
name: web
I think the title says it all. I checked the logs of the docker containers and the API response but I can't additional info for that error...
Is this just not supported, or are you planning on implementing it? The same error also occures random while creating shortlinks for seeminly no reason. Is there anything I can do to get a more detailed error msg?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.