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

[Flickr] OAuth failing #5136

Closed
IsaiahHopf opened this issue Jan 30, 2024 · 2 comments
Closed

[Flickr] OAuth failing #5136

IsaiahHopf opened this issue Jan 30, 2024 · 2 comments

Comments

@IsaiahHopf
Copy link

I'm trying to setup OAuth for Flickr, but I'm getting this error and my browser never opens up for me to authorize the app like the README says should happen. Possibly related to this issue with general Flickr downloads.

gallery-dl oauth:flickr --verbose
[gallery-dl][debug] Version 1.26.7
[gallery-dl][debug] Python 3.12.1 - Windows-11-10.0.22621-SP0
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files ['%APPDATA%\\gallery-dl\\config.json']
[gallery-dl][debug] Starting DownloadJob for 'oauth:flickr'
[oauth][debug] Using OAuthFlickr for 'oauth:flickr'
[cookies][debug] Extracting cookies from C:\Users\me\AppData\Roaming\Mozilla\Firefox\Profiles\06r1gbwe.default-release-1702897032473\cookies.sqlite
[cookies][info] Extracted 1813 cookies from Firefox
[oauth][info] Using default flickr API key (f8f78d1a40debf471f0b22fa2d00525f)
[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=https%3A%2F%2Fmikf.github.io%2Fgallery-dl%2Foauth-redirect.html HTTP/1.1" 429 117
[oauth][error] An unexpected error occurred: KeyError - 'oauth_token_secret'. 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 "C:\Program Files\Python312\Lib\site-packages\gallery_dl\job.py", line 127, in run
    for msg in extractor:
  File "C:\Program Files\Python312\Lib\site-packages\gallery_dl\extractor\oauth.py", line 256, in items
    self._oauth1_authorization_flow(
  File "C:\Program Files\Python312\Lib\site-packages\gallery_dl\extractor\oauth.py", line 116, in _oauth1_authorization_flow
    self.session.auth.token_secret = data["oauth_token_secret"]
                                     ~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'oauth_token_secret'
@patrikalienus
Copy link

Yep, this looks related to the error I reported. I'm not fluent in python but I tried to diagnose it myself, but eventually gave up when I realised I barely know what the hell I'm reading :-D

@IsaiahHopf
Copy link
Author

Issue has resolved itself the same as the linked issue.

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

No branches or pull requests

3 participants