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

qtoutv: timeout error #36

Open
eepp opened this issue Nov 22, 2014 · 0 comments
Open

qtoutv: timeout error #36

eepp opened this issue Nov 22, 2014 · 0 comments

Comments

@eepp
Copy link
Collaborator

eepp commented Nov 22, 2014

Once the bitrate is chosen for a group of episodes (download all episodes or download season episodes), a timeout may occur; here's the traceback:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 331, in _make_request
    httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 333, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib64/python3.4/http/client.py", line 1172, in getresponse
    response.begin()
  File "/usr/lib64/python3.4/http/client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python3.4/http/client.py", line 313, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib64/python3.4/socket.py", line 371, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/requests/adapters.py", line 362, in send
    timeout=timeout
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
    _pool=self, _stacktrace=stacktrace)
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 245, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/packages/six.py", line 310, in reraise
    raise value
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 516, in urlopen
    body=body, headers=headers)
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 336, in _make_request
    self, url, "Read timed out. (read timeout=%s)" % read_timeout)
requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='api.radio-canada.ca', port=80): Read timed out. (read timeout=15)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/eepp/dev/pytoutv/toutv/dl.py", line 95, in _do_request
    timeout=15, stream=stream)
  File "/usr/lib/python3.4/site-packages/requests/api.py", line 59, in get
    return request('get', url, **kwargs)
  File "/usr/lib/python3.4/site-packages/requests/api.py", line 48, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 451, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 557, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.4/site-packages/requests/adapters.py", line 422, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='api.radio-canada.ca', port=80): Read timed out. (read timeout=15)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/eepp/dev/pytoutv/toutvqt/main_window.py", line 243, in _on_bitrate_chosen
    self.start_download_episodes(res_index, episodes, output_dir)
  File "/home/eepp/dev/pytoutv/toutvqt/main_window.py", line 217, in start_download_episodes
    qualities = episode.get_available_qualities()
  File "/home/eepp/dev/pytoutv/toutv/bos.py", line 468, in get_available_qualities
    playlist = toutv.dl.Downloader.get_episode_playlist(self, proxies)
  File "/home/eepp/dev/pytoutv/toutv/dl.py", line 139, in get_episode_playlist
    pl, cookies = Downloader.get_episode_playlist_cookies(episode, proxies)
  File "/home/eepp/dev/pytoutv/toutv/dl.py", line 127, in get_episode_playlist_cookies
    url = Downloader.get_episode_playlist_url(episode)
  File "/home/eepp/dev/pytoutv/toutv/dl.py", line 117, in get_episode_playlist_url
    timeout=15)
  File "/home/eepp/dev/pytoutv/toutv/dl.py", line 100, in _do_request
    raise toutv.exceptions.RequestTimeout(url, timeout)
toutv.exceptions.RequestTimeout: Request timeout (15 s for "http://api.radio-canada.ca/validationMedia/v1/Validation.html")
@simark simark added the qtoutv label Nov 23, 2014
@eepp eepp added the bug label Apr 1, 2015
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

2 participants