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

SSL decryption failed v2 #324

Closed
wankio opened this issue Jul 1, 2019 · 3 comments
Closed

SSL decryption failed v2 #324

wankio opened this issue Jul 1, 2019 · 3 comments
Labels

Comments

@wankio
Copy link
Contributor

wankio commented Jul 1, 2019

deviantart: An unexpected error occurred: Error - [('SSL routines', 'ssl3_get_record', 'decryption failed or bad record mac')]. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
deviantart:
Traceback (most recent call last):
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\job.py", line 54, in run
    self.dispatch(msg)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\job.py", line 98, in dispatch
    self.handle_url(url, kwds)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\job.py", line 209, in handle_url
    if not self.download(url):
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\job.py", line 278, in download
    return downloader.download(url, self.pathfmt)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\downloader\common.py", line 43, in download
    return self.download_impl(url, pathfmt)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\downloader\common.py", line 112, in download_impl
    self.receive(file)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\downloader\http.py", line 71, in receive
    for data in self.response.iter_content(self.chunk_size):
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\requests\models.py", line 750, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\urllib3\response.py", line 494, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\urllib3\response.py", line 442, in read
    data = self._fp.read(amt)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\http\client.py", line 447, in read
    n = self.readinto(b)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\http\client.py", line 491, in readinto
    n = self.fp.readinto(b)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\urllib3\contrib\pyopenssl.py", line 294, in recv_into
    return self.connection.recv_into(*args, **kwargs)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\OpenSSL\SSL.py", line 1822, in recv_into
    self._raise_ssl_error(self._ssl, result)
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\OpenSSL\SSL.py", line 1647, in _raise_ssl_error
    _raise_current_error()
  File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\OpenSSL\_util.py", line 54, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'decryption failed or bad record mac')]
@mikf
Copy link
Owner

mikf commented Jul 1, 2019

This appears to be the same as #130, but this time the exception is thrown by pyOpenSSL and not the native SSL implementation. It's essentially the same error ("decryption failed or bad record mac") wrapped in a different exception class that wasn't caught. Should be fixed in 8966930, but there is a small possibility that the exception from #130 re-appears.

@mikf mikf closed this as completed Jul 1, 2019
@mikf mikf changed the title deviantart error SSL decryption failed v2 Jul 1, 2019
@mikf mikf added the bug label Jul 1, 2019
@wankio
Copy link
Contributor Author

wankio commented Jul 2, 2019

@mikf
flickr have this problem too so i think it's python-side ?

@mikf
Copy link
Owner

mikf commented Jul 2, 2019

This problem is most likely caused by an issue with your internet connection. The packets send to your computer somehow get mangled in a way that causes the SSL/TLS decryption of their data to fail ... which shouldn't really happen since TCP has built-in error detection ...

I'm not sure what is fundamentally causing those errors, but at least everyone else doesn't appear to have this problem, so I doubt it's Python related.

Anyway, did this error appear again after installing the latest git snapshot? If yes, what was the error message?

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

No branches or pull requests

2 participants