Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion robosystems_client/clients/file_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def upload(
table_name=table_name,
file_name=file_name,
success=False,
error="Failed to complete file upload",
error=f"Failed to complete file upload: {update_response.status_code}",
)

# Extract staging metadata from the operation envelope result. Large files
Expand Down
2 changes: 1 addition & 1 deletion tests/test_file_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_upload_status_update_failure(
result = client.upload(graph_id, "Entity", BytesIO(b"data"))

assert result.success is False
assert "Failed to complete file upload" in result.error
assert result.error == "Failed to complete file upload: 500"

def test_upload_no_token(self, mock_config, graph_id):
"""Test upload fails without API key."""
Expand Down
Loading