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

[bug]: Initial part get 401 Unauthorized #4364

Open
1 task done
jian0209 opened this issue May 4, 2024 · 2 comments
Open
1 task done

[bug]: Initial part get 401 Unauthorized #4364

jian0209 opened this issue May 4, 2024 · 2 comments
Assignees
Labels
🐛bug Something isn't working

Comments

@jian0209
Copy link

jian0209 commented May 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

It is smooth when i publish the app, but I stuck on getting 401 with this api "api/users/me/"
Below is the backend log

[2024-05-04 07:01:41 +0000] [34] [INFO] Application startup complete.
172.18.0.12:46674 - "GET /api/instances/ HTTP/1.0" 200
172.18.0.12:45982 - "GET /api/instances/ HTTP/1.0" 200
172.18.0.12:38942 - "GET /api/configs/ HTTP/1.0" 200
WARNING 2024-05-04 07:03:13,053 log 33 139889945951032 Unauthorized: /api/users/me/
172.18.0.12:38948 - "GET /api/users/me/ HTTP/1.0" 401
172.18.0.12:59388 - "POST /api/instances/admins/sign-in/ HTTP/1.0" 200
WARNING 2024-05-04 07:03:50,173 log 33 139889945951032 Unauthorized: /api/users/me/
172.18.0.12:59404 - "GET /api/users/me/ HTTP/1.0" 401

Below is my env file

DEBUG=0
CORS_ALLOWED_ORIGINS="https://yyy.xxx.com"

POSTGRES_USER="xxx"
POSTGRES_PASSWORD="xxx"
POSTGRES_HOST="xxx"
POSTGRES_DB="xxx"
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}

REDIS_HOST="plane-redis"
REDIS_PORT="6379"
REDIS_URL="redis://${REDIS_HOST}:6379/"

FILE_SIZE_LIMIT=5242880

USE_MINIO=1

WEB_URL="https://yyy.xxx.com"

GUNICORN_WORKERS=2
SECRET_KEY="xxx"

Steps to reproduce

  1. Visit webpage at the start
  2. Go into god-mode
  3. Visit "api/users/me" Return 401 error

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

docker-stable

@jian0209 jian0209 added the 🐛bug Something isn't working label May 4, 2024
@jian0209
Copy link
Author

jian0209 commented May 6, 2024

Can anyone help me here? I am stuck in setup the project, I have my own secret key, but it still getting 401 "Authentication credentials were not provided"
@pushya22

@infinitr0us
Copy link

I have the same issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants