SSL Error: SSL3_GET_RECORD:decryption failed or bad record mac

557 views
Skip to first unread message

Alex Ling

unread,
Aug 17, 2016, 2:11:17 PM8/17/16
to AdWords API Forum
Hi,

We are using the Python package: googleads==4.1.0 to extract data via the Adwords reporting API. We have the same ETL schedule setup for both of our QA and PROD environment. We saw the following error more often recently. Could you provide some guidance to figure out a solution for that.

ERROR:[Errno 1] _ssl.c:1429: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/googleads/adwords.py", line 1344, in DownloadReportAsStringWithAwql
    return response.read().decode('utf-8')
  File "/usr/lib/python2.7/socket.py", line 351, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib/python2.7/httplib.py", line 573, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/ssl.py", line 341, in recv
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 260, in read
    return self._sslobj.read(len)
SSLError: [Errno 1] _ssl.c:1429: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac

Thanet Knack Praneenararat (AdWords API Team)

unread,
Aug 17, 2016, 10:36:53 PM8/17/16
to AdWords API Forum
Hi Alex,

I'm asking my colleague to have a look at your question.
As it's more client lib specific, next time, please consider posting similar questions to GitHub issue for the Python client lib.

Cheers,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages