Skip to content

Commit 0d3cc7c

Browse files
committed
fix payload keys and stdout
1 parent 50c8fd0 commit 0d3cc7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

alephclient/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def signed_url_upload(
561561
signed_url = result["url"]
562562
upload_id = result["id"]
563563
log.info("Signed URL id [%s]: %s", upload_id, file_path.name)
564-
log.debug("Signed URL: %s", signed_url)
564+
log.debug("Signed URL id [%s]", upload_id)
565565

566566
# Step 2: PUT file content to the signed URL
567567
try:
@@ -578,7 +578,7 @@ def signed_url_upload(
578578
# Step 3: create the document record
579579
doc_url_path = f"collections/{collection_id}/document"
580580
doc_url = self._make_url(doc_url_path, params={"index": index})
581-
payload = {"upload_id": upload_id, "meta": meta}
581+
payload = {"upload_id": upload_id, "Meta": meta}
582582
result = self._request("POST", doc_url, json=payload)
583583
if not result:
584584
return {"id": upload_id, "status": "ok"}

0 commit comments

Comments
 (0)