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

Getting an error on execute: #4

Closed
dafjedavid opened this issue Jun 29, 2014 · 1 comment
Closed

Getting an error on execute: #4

dafjedavid opened this issue Jun 29, 2014 · 1 comment

Comments

@dafjedavid
Copy link

~# flickrbackup.py -f 1978-01-01 -o /share/Photos/
Running backup of images updated since 1978-01-01
Traceback (most recent call last):
File "/usr/bin/flickrbackup.py", line 480, in
main()
File "/usr/bin/flickrbackup.py", line 466, in main
verbose=arguments.verbose
File "/usr/bin/flickrbackup.py", line 116, in init
self.flickr_api, self.flickr_usernsid = self.retrieve_flickr_token()
File "/usr/bin/flickrbackup.py", line 301, in retrieve_flickr_token
(token, frob) = flickr_api.get_token_part_one(perms='write')
File "/usr/local/lib/python2.7/dist-packages/flickrapi/init.py", line 749, in get_token_part_one
rsp = self.auth_getFrob(auth_token=None, format='xmlnode')
File "/usr/local/lib/python2.7/dist-packages/flickrapi/init.py", line 349, in handler
parse_format=args['format'], *_args)
File "/usr/local/lib/python2.7/dist-packages/flickrapi/init.py", line 427, in __wrap_in_parser
data = wrapped_method(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/flickrapi/init.py", line 402, in __flickr_call
flicksocket = urllib2.urlopen(url, post_data)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

@dafjedavid
Copy link
Author

Found the issue: Flickr API changed. Was enough to change all hardcoded http:// links to https://

After that, flickrbackup worked again.

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