MarcelRobitaille / bbyen

Bring Back YouTube Email Notifications! YouTube upload email notification replacement
MIT License
10 stars 0 forks source link

Authentication Problems #18

Open audi4444player opened 7 months ago

audi4444player commented 7 months ago

Hello, since ifttt has kicked me off their supposedly forever legacy plan, I'm trying to get thin working but I get to the point where I need to authenticate and get stuck, I copt the address to my browser, sign into my account, it redirects to http://localhost:3030/authorization_code?code=4/"blah blah code"&scope=https://www.googleapis.com/auth/youtube.readonly and the page says "This site can’t be reached" trying to copy the whole url or parts back into the terminal doesn't seem to do anything. if I press the stop button in docker it then shows "bbyen | Paste the entire URL of the page you are redirected to (even if you receive 404):" which I assume should have popped up but obviously because pressed stop it then goes "bbyen exited with code 0" starting from the beginning. pausing did nothing am I missing something?

MarcelRobitaille commented 7 months ago

Are you forwarding port 3030 in docker? In order to paste the url you might need to run docker with -it. How are you running docker? What os do you have?

audi4444player commented 7 months ago

thank you for replying, "Are you forwarding port 3030 in docker" i don't know what that means haha, I have docker desktop running in w10 with docker itself running in some sort of windows built in linux vm as per the instructions they give via their install guide.

I'm using it in the cmd window for linux that opened after it installed, and I've followed your instructions, the only thing I've done through docker/desktop is look and I can see your app bbyen is running and when it didn't work I tried the stop and pause buttons to see if it would help. sorry this is a bit complicated for me haha, hence why I was paying ifttt.

"you might need to run docker with -it." what does this mean?

MarcelRobitaille commented 7 months ago

Ok, it sounds like you're using docker run from the WSL command line, not docker desktop GUI or docker compose. Is that right? Could you please share your entire docker run command?

About the port: The reason that when you got to localhost:3030 it says "This site can't be reached" is because the server is only running in the container in a way that's completely isolated from Windows. You have to tell docker to connect the port 3030 on the host to 3030 in the container. You can just add -p 3030:3030 to your docker run command, so docker run -p 3030:3030 ....

About the copy-paste: Docker by default only prints the output of the process running in the container. If you want the process to also be able to see your keypresses (and what you paste), you should add the -it (--tty and --interactive) flags: docker run -it ....

You should only have to do one or the other. If you send me your docker run command, I can tell you exactly what you need to run.

MarcelRobitaille commented 7 months ago

I just checked the readme. The instructions actually use docker compose. Sorry, it's been a while since I wrote that. Are you using docker compose? sudo docker-compose up