-
Notifications
You must be signed in to change notification settings - Fork 59
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
No URL for authorization? #23
Comments
How long did you wait before aborting?
…On Tue, 6 Jun 2023, 4:35 am bibi-b, ***@***.***> wrote:
Hi there,
seems that I am doing something wrong. On a headless Ubuntu 20 I run:
python3 sync.py
but nothing happens. I have to abort with ctrl-c to get back to the
command line, where it then says:
Traceback (most recent call last):
File "/home/meiko/spotify_to_tidal/sync.py", line 297, in
spotify_session = open_spotify_session(config['spotify'])
File "/home/meiko/spotify_to_tidal/auth.py", line 16, in
open_spotify_session
credentials_manager.get_access_token(as_dict=False)
File
"/home/meiko/miniconda3/lib/python3.10/site-packages/spotipy/oauth2.py",
line 535, in get_access_token
"code": code or self.get_auth_response(),
File
"/home/meiko/miniconda3/lib/python3.10/site-packages/spotipy/oauth2.py",
line 490, in get_auth_response
return self._get_auth_response_local_server(redirect_port)
File
"/home/meiko/miniconda3/lib/python3.10/site-packages/spotipy/oauth2.py",
line 459, in _get_auth_response_local_server
server.handle_request()
File "/home/meiko/miniconda3/lib/python3.10/socketserver.py", line 294, in
handle_request
ready = selector.select(timeout)
File "/home/meiko/miniconda3/lib/python3.10/selectors.py", line 416, in
select
fd_event_list = self._selector.poll(timeout)
KeyboardInterrupt
If I understand everything right, I should have get an URL for
authorization, haven't I?
Thanks
meiko
—
Reply to this email directly, view it on GitHub
<#23>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVQBYUG3USIFYX7PRW4NF3XJYDGPANCNFSM6AAAAAAY3HALR4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@timrae About 30 min. |
I see... Do you have X11 running? Usually it'll open up a browser window where you do the oauth authentication. |
No, as it is an headless server I want to have it "lean". Any chance to get the URL in the command line? |
I'd say the easiest way would be to use X11 forwarding to your local computer. I've never tried to run it on a headless server, so can't offer any support on this. |
Okay, thank you. I'll try this. |
Hi there,
seems that I am doing something wrong. On a headless Ubuntu 20 I run:
python3 sync.py
but nothing happens. I have to abort with ctrl-c to get back to the command line, where it then says:
Traceback (most recent call last):
File "/home/meiko/spotify_to_tidal/sync.py", line 297, in
spotify_session = open_spotify_session(config['spotify'])
File "/home/meiko/spotify_to_tidal/auth.py", line 16, in open_spotify_session
credentials_manager.get_access_token(as_dict=False)
File "/home/meiko/miniconda3/lib/python3.10/site-packages/spotipy/oauth2.py", line 535, in get_access_token
"code": code or self.get_auth_response(),
File "/home/meiko/miniconda3/lib/python3.10/site-packages/spotipy/oauth2.py", line 490, in get_auth_response
return self._get_auth_response_local_server(redirect_port)
File "/home/meiko/miniconda3/lib/python3.10/site-packages/spotipy/oauth2.py", line 459, in _get_auth_response_local_server
server.handle_request()
File "/home/meiko/miniconda3/lib/python3.10/socketserver.py", line 294, in handle_request
ready = selector.select(timeout)
File "/home/meiko/miniconda3/lib/python3.10/selectors.py", line 416, in select
fd_event_list = self._selector.poll(timeout)
KeyboardInterrupt
If I understand everything right, I should have get an URL for authorization, haven't I?
Thanks
meiko
The text was updated successfully, but these errors were encountered: