Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in DEV Version : Error when trying to access with API Key : "redirected automatically to" #3040

Closed
hokapefr opened this issue Mar 22, 2025 · 5 comments
Assignees
Labels

Comments

@hokapefr
Copy link

Hi,

in DEV only, I have this error 👍

image: ghcr.io/dgtlmoon/changedetection.io:dev

curl http://localhost:5000/api/v1/systeminfo -H"x-api-key:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
<!doctype html>

<title>Redirecting...</title>

Redirecting...

You should be redirected automatically to the target URL: /login?next=/. If not, click the link.

PROD is ok.

Regards,
Michel

@dgtlmoon
Copy link
Owner

Unable to reproduce - are you doing something "different" like running behind a reverse proxy, caddy, something? can you show any more info? how did you run it? does any other end point work, like requesting the index list etc?

@dgtlmoon
Copy link
Owner

i ran this

docker pull ghcr.io/dgtlmoon/changedetection.io:dev

docker run -p 5000:5000  ghcr.io/dgtlmoon/changedetection.io:dev

(got settings and get the key)

curl http://localhost:5000/api/v1/systeminfo -H"x-api-key:e622f159bd6182895c651381bbb6cfb6"
{"queue_size": 0, "overdue_watches": [], "uptime": 39.78, "watch_count": 2, "version": "0.49.4"}

@hokapefr
Copy link
Author

Hi,

You are right, that with your configuration, it's also working by me.

But I could reproduce the problem with a minimalistic "docker compose" :

version: '3.2'

services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io:dev
container_name: changedetection
hostname: changedetection
volumes:
- /mnt/docker/changedetection/datastore:/datastore
ports:
- 127.0.0.1:5000:5000
restart: unless-stopped

The error message is the same as in my first message.

Regards,
Michel

@dgtlmoon
Copy link
Owner

I'm unable to reproduce that, you 100% have a problem on your end, run docker ps and see that only one container is running

@dgtlmoon
Copy link
Owner

furthmore, there is an automated test that tests the API on that endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants