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

Max retries exceeded #12

Open
vitorio opened this issue Dec 28, 2017 · 0 comments
Open

Max retries exceeded #12

vitorio opened this issue Dec 28, 2017 · 0 comments

Comments

@vitorio
Copy link

vitorio commented Dec 28, 2017

Looks like some of my stories reference URLs which don't exist any more. Storified crashes with this error about halfway through downloading my stories.

$ ./storified.py vitorio
Traceback (most recent call last):
  File "./storified.py", line 163, in <module>
    storified(args.account_name, args.download_dir)
  File "./storified.py", line 25, in storified
    archive_story(story, archive_dir)
  File "./storified.py", line 48, in archive_story
    rewrite_html(story, story_dir)
  File "./storified.py", line 120, in rewrite_html
    path = localize(src, story_dir, 'images')
  File "./storified.py", line 148, in localize
    path = download_file(url, path)
  File "./storified.py", line 69, in download_file
    resp = requests.get(url)
  File "/Users/vitorio/Library/Python/2.7/lib/python/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/Users/vitorio/Library/Python/2.7/lib/python/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/vitorio/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/vitorio/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/Users/vitorio/Library/Python/2.7/lib/python/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='a0.twimg.com', port=80): Max retries exceeded with url: /profile_images/369647011/crych_normal.png (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10ceb27d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
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