sns-sdks / python-youtube

A simple Python wrapper for YouTube Data API :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-youtube/
MIT License
303 stars 46 forks source link

Oauth issue #181

Open percit opened 1 month ago

percit commented 1 month ago

Hi, I am trying to run this example: https://github.com/sns-sdks/python-youtube/blob/master/examples/clients/oauth_flow.py. I set my redirect uri as https://localhost/ and tried running it, I gave it all the accesses and in the end I got This site can’t be reachedlocalhost refused to connect. Try:

Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED How can this be fixed? I am running it on Ubuntu 22.04, tried on Chrome and Firefox, tried stopping firewall, and nothing works

MerleLiuKun commented 1 month ago

locahost is for test, you need a online domain.

percit commented 1 month ago

Can this be somehow be used? I easly used a localhost with a port in spotify api, but can't get this to work