CertificateError: hostname 'archive.gazettes.laws.africa' doesn't match 'kenyalaw.staging.laws.africa'
(1 additional frame(s) were not displayed)
...
File "urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "urllib3/connectionpool.py", line 1058, in _validate_conn
conn.connect()
File "urllib3/connection.py", line 472, in connect
_match_hostname(cert, self.assert_hostname or server_hostname)
File "urllib3/connection.py", line 545, in _match_hostname
match_hostname(cert, asserted_hostname)
File "urllib3/util/ssl_match_hostname.py", line 155, in match_hostname
raise CertificateError("hostname %r doesn't match %r" % (hostname, dnsnames[0]))
MaxRetryError: HTTPSConnectionPool(host='archive.gazettes.laws.africa', port=443): Max retries exceeded with url: /archive/na/2002/na-government-gazette-dated-2002-07-19-no-2770.pdf (Caused by SSLError(CertificateError("hostname 'archive.gazettes.laws.africa' doesn't match 'kenyalaw.staging.laws.africa'")))
File "requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
File "urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
SSLError: HTTPSConnectionPool(host='archive.gazettes.laws.africa', port=443): Max retries exceeded with url: /archive/na/2002/na-government-gazette-dated-2002-07-19-no-2770.pdf (Caused by SSLError(CertificateError("hostname 'archive.gazettes.laws.africa' doesn't match 'kenyalaw.staging.laws.africa'")))
(5 additional frame(s) were not displayed)
...
File "peachjam/tasks.py", line 72, in update_document
ingestor.update_document(document_id)
File "peachjam/models/ingestors.py", line 62, in update_document
adapter.update_document(document_id)
File "peachjam/adapters/indigo.py", line 294, in update_document
self.download_source_file(pubdoc["url"], created_doc, title)
File "peachjam/adapters/indigo.py", line 494, in download_source_file
r = self.client_get(url)
File "peachjam/adapters/indigo.py", line 466, in client_get
r = self.client.get(url)
Sentry Issue: LII-1MA