gilsondev / checkstatus-govbr

Projeto criado para acompanhar situação dos domínios .govbr registrados pela área pública
https://checkstatusgovbr.org
GNU General Public License v3.0
2 stars 1 forks source link

Quando acessa o CSV dos domínios cancelado, ocorre um erro no download #38

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: CHECKSTATUSGOVBR-4

ConnectionResetError: [Errno 104] Connection reset by peer
(5 additional frame(s) were not displayed)
...
  File "http/client.py", line 976, in send
    self.connect()
  File "http/client.py", line 1455, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "ssl.py", line 1104, in _create
    self.do_handshake()
  File "ssl.py", line 1375, in do_handshake
    self._sslobj.do_handshake()

URLError: <urlopen error [Errno 104] Connection reset by peer>
(13 additional frame(s) were not displayed)
...
  File "main.py", line 33, in <module>
    update_cancelled_domains(cursor)
  File "cancelled_domains.py", line 22, in update_domains
    df = get_cancelled_domains()
  File "cancelled_domains.py", line 17, in get_cancelled_domains
    return pd.read_csv(CANCELLED_DOMAINS_CSV, names=["domain"])