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

401 Error after trying authentication. Not sure what is the error. #39

Open
wanburana opened this issue Jul 25, 2023 · 17 comments
Open

Comments

@wanburana
Copy link

image

here is the log of the expanse-app-1

> prod
> RUN=prod PORT=1301 node ./controller/server.mjs

update all started
update all completed
server (expanse) started on (localhost:1301)
socket (_lug_mR7qI5qoR3IAAAC) connected
socket (vYQ9_v4VIkiSWYdzAAAD) connected
socket (6_Zt4bbwk35zzZRuAAAF) connected
socket (SD8kRbeB_f_Hb7iUAAAH) connected
update all started
update all completed
socket (iy4uL8s43FAQKQcxAAAJ) connected
update all started
update all completed
update all started
update all completed
update all started
update all completed
update all started
update all completed
socket (TYvYWW6APesuVAPpAAAL) connected
update all started
update all completed
wait-for-it: waiting for db:5432 without a timeout
wait-for-it: db:5432 is available after 0 seconds

and here is the log of expanse-db-1

2023-07-25 19:39:26.843 UTC [1] LOG:  starting PostgreSQL 14.8 (Debian 14.8-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2023-07-25 19:39:26.844 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-07-25 19:39:26.844 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2023-07-25 19:39:26.848 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-25 19:39:26.854 UTC [27] LOG:  database system was shut down at 2023-07-25 19:38:32 UTC
2023-07-25 19:39:26.859 UTC [1] LOG:  database system is ready to accept connections
2023-07-25 19:39:27.227 UTC [34] LOG:  incomplete startup packet

PostgreSQL Database directory appears to contain a database; Skipping initialization
@koksszef
Copy link

did you find a solution? i can seem to figure it out

@wanburana
Copy link
Author

did you find a solution? i can seem to figure it out

nothing works for me yet

@dd-ugm
Copy link

dd-ugm commented Oct 2, 2023

Similar issue here. Identical DB logs with slightly different error thrown by Reddit when trying to authenticate.

Edit: Potentially same as #2 and #7.

@Anon-Anon443

This comment was marked as off-topic.

@aravezskinteeth
Copy link

I have the same issue. Docker is working normally and the expanse container is running.

@abosaad11
Copy link

I had the same error, tried it with a different reddit acount ad it worked. I thought it was because the first account was perma banned.

The first account had both capital and small letters, the second username was all small letters, so I copied the first account name exactly as it was, then it worked.

TLDR: I think the username is case sensitive.

@Anon-Anon443

This comment was marked as off-topic.

@aplotor
Copy link
Owner

aplotor commented Jun 28, 2024

i guess theres likely something wrong with your allow/deny lists


someone dm'd me on reddit and said they did

ALLOWED_USERS=""
DENIED_USERS="*"

and that they were getting this 401. yes, because this states that there are no allowed users


and as @abosaad11 said, usernames in these lists are case-sensitive. please read the instructions carefully

# fill in username(s) (case-sensitive) separated by ", " (a comma AND a space) in the quotes. use "*" to allow or deny all, except usernames in the other list

@aplotor

This comment was marked as off-topic.

@Anon-Anon443

This comment was marked as off-topic.

@aplotor

This comment was marked as off-topic.

@zolinone
Copy link

I'm getting a 401 as well, no matter what I do.
I've combed through my .env_prod file to make sure I have it right.
Copied and pasted my Reddit username to ensure case-sensitivity.
For allow/deny-lists, I've tried the following:

ALLOWED_USERS="<name1>"
DENIED_USERS="*"
ALLOWED_USERS="<name1>, <name2>, <name3>"
DENIED_USERS="<name4>"
ALLOWED_USERS="*"
DENIED_USERS="<name4>, <name5>, <name6>"

And many variations thereof. None work. I thought for sure the last one would do it, since it's allowing all.
Any ideas?

@Anon-Anon443

This comment was marked as off-topic.

@yaserahmady
Copy link

I had the same issue as everyone and I'm sure my env was correct. What I did to fix it is edit the compose.yaml file like this:

I changed this:

image: ghcr.io/aplotor/expanse:latest

To this:

build: ./

And now it works. I guess it's an issue with the GitHub Container registry or something!

@Anon-Anon443

This comment was marked as off-topic.

@Anon-Anon443

This comment was marked as off-topic.

@aplotor

This comment was marked as off-topic.

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

No branches or pull requests

9 participants