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

oauth:flickr can't establish a secure connection to the server "localhost" #503

Closed
loewez opened this issue Dec 2, 2019 · 0 comments
Closed

Comments

@loewez
Copy link

loewez commented Dec 2, 2019

After I clicked the authorisation button on flickr, my browser was redirected to localhost and showed an error:

Safari can't open the page "https://localhost:6414/?oauth_token=...." because Safari can't establish a secure connection to the server "localhost".

Test on Mac 10.13 and 10.14 and Windows 10, browser Firefox/Safari.

mac:~ user$ gallery-dl -v
[gallery-dl][debug] Version 1.11.1
[gallery-dl][debug] Python 3.7.4 - Darwin-17.7.0-x86_64-i386-64bit
[gallery-dl][debug] requests 2.22.0 - urllib3 1.25.7

mac:~ user$ gallery-dl --verbose oauth:flickr
[gallery-dl][debug] Version 1.11.1
[gallery-dl][debug] Python 3.7.4 - Darwin-17.7.0-x86_64-i386-64bit
[gallery-dl][debug] requests 2.22.0 - urllib3 1.25.7
[gallery-dl][debug] Starting DownloadJob for 'oauth:flickr'
[gallery-dl][debug] Updating urllib3 ciphers
[oauth][debug] Using OAuthFlickr for 'oauth:flickr'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.flickr.com:443
[urllib3.connectionpool][debug] https://www.flickr.com:443 "GET /services/oauth/request_token?oauth_callback=http%3A%2F%2Flocalhost%3A6414%2F HTTP/1.1" 200 109
Waiting for response. (Cancel with Ctrl+c)
[oauth][error] An unexpected error occurred: UnicodeDecodeError - 'utf-8' codec can't decode byte 0xe1 in position 4: invalid continuation byte. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[oauth][debug] 
Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/3.7.4/lib/python3.7/site-packages/gallery_dl/job.py", line 48, in run
    for msg in self.extractor:
  File "/Users/user/.pyenv/versions/3.7.4/lib/python3.7/site-packages/gallery_dl/extractor/oauth.py", line 199, in items
    "https://www.flickr.com/services/oauth/access_token",
  File "/Users/user/.pyenv/versions/3.7.4/lib/python3.7/site-packages/gallery_dl/extractor/oauth.py", line 83, in _oauth1_authorization_flow
    data = self.open(authorize_url, params)
  File "/Users/user/.pyenv/versions/3.7.4/lib/python3.7/site-packages/gallery_dl/extractor/oauth.py", line 69, in open
    return self.recv()
  File "/Users/user/.pyenv/versions/3.7.4/lib/python3.7/site-packages/gallery_dl/extractor/oauth.py", line 52, in recv
    data = self.client.recv(1024).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 4: invalid continuation byte
@mikf mikf closed this as completed in 372ffe9 Dec 3, 2019
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

1 participant