Florentino Sainz
02/02/2024, 8:57 AM{'id': 'cmuarlehdgvo09jaee8g'}
{'completed': False,
'ingested_objects': 0,
'update_time': datetime.datetime(2024, 2, 2, 8, 54, 45, 107239, tzinfo=tzutc())}
{'completed': False,
'ingested_objects': 2,
'update_time': datetime.datetime(2024, 2, 2, 8, 54, 46, 123730, tzinfo=tzutc())}
[ERROR][2024-02-02 09:54:47,192][lakefs_helper.py:379] Exception when calling ImportApi->import_status: (502)
Reason: Bad Gateway
HTTP response headers: HTTPHeaderDict({'Server': 'awselb/2.0', 'Date': 'Fri, 02 Feb 2024 08:54:47 GMT', 'Content-Type': 'text/html', 'Content-Length': '122', 'Connection': 'keep-alive'})
HTTP response body: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>
my code
try:
# import data from object store
api_response : ImportCreationResponse = lakefs.import_api.import_start(repository,
branch, import_creation)
print(api_response)
finished = False
total_ingested = 0
while not finished:
time.sleep(0.2)
status_response : ImportStatusResp = lakefs.import_api.import_status(repository, branch,
api_response["id"])
print(status_response)
finished = status_response["completed"]
total_ingested = status_response["ingested_objects"]
assert not error_if_no_files or total_ingested > 0, f"No files found when processing CopyOp file {origin} to {destination}" # noqa: E501
except lakefs_client.ApiException as e:
logging.error("Exception when calling ImportApi->import_start/status: %s\n" % e)
Florentino Sainz
02/02/2024, 9:59 AMFlorentino Sainz
02/02/2024, 10:00 AMItai Admi
02/02/2024, 10:01 AMFlorentino Sainz
02/02/2024, 10:02 AMItai Admi
02/02/2024, 10:03 AMFlorentino Sainz
02/02/2024, 10:06 AMFlorentino Sainz
02/02/2024, 10:13 AMItai Admi
02/02/2024, 10:13 AMFlorentino Sainz
02/02/2024, 10:16 AMFlorentino Sainz
02/02/2024, 10:16 AMFlorentino Sainz
02/02/2024, 10:16 AMFlorentino Sainz
02/02/2024, 10:19 AMItai Admi
02/02/2024, 10:26 AMFlorentino Sainz
02/02/2024, 10:27 AMElad Lachmi
02/02/2024, 10:31 AMOz Katz
Elad Lachmi
02/05/2024, 2:35 PMFlorentino Sainz
02/05/2024, 3:03 PM