prebid / line-item-manager

Prebid Line Item Management Tool
Other
30 stars 17 forks source link

ssl.SSLEOFError: EOF occurred in violation of protocol #127

Open Sir-Will opened 1 year ago

Sir-Will commented 1 year ago

Description

I sometimes get the error below with configurations which take a long time (3-5 hours, 5k line items). I assume the longer it runs, the higher the chance the error will occur.

I did run the same configuration on some other GAM, and it didn't error out.

Is there any way to prevent this or recover from it (to continue form where it failed)?

Similiar to https://github.com/prebid/line-item-manager/issues/25

What I Did

INFO:line_item_manager.gam_config:Line Item Creative Associations: Writing 12600 records...
   32%|█████████████████████████████████████████████████████                                                                                                                  | 4000/12600 [08:33<18:24,  7.79it/s]INFO:line_item_manager.gam_config:Auto-archiving Orders:
[..., ..., ..., ..., ..., ...]
WARNING:googleads.soap:Error summary: {'faultMessage': '[ServerError.SERVER_ERROR @ ]', 'requestId': '...', 'responseTime': '25216', 'serviceName': 'OrderService', 'methodName': 'performOrderAction'}
ERROR:line_item_manager.cli:Cleanup: Google Ads Error, [ServerError.SERVER_ERROR @ ]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.8/dist-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/local/lib/python3.8/dist-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1125)