Skip to content

Commit 62b722e

Browse files
Federico De Ponteclaude
andcommitted
fix: Correct /bulk/status endpoint to return actual batch data
Fixed bug where /bulk/status was looking for non-existent 'processed_rows' field instead of 'successful' and 'failed' counts from batch summary. Changes: - Updated response to include: successful, failed, processing_time_seconds - Removed incorrect 'processed_rows' field - Tested with real batch IDs - now returns correct data Test results: - ✅ /bulk/status now shows: successful: 2, failed: 0, time: 0.49s - ✅ /bulk/results working correctly - ✅ All 16 endpoints tested (comprehensive test report created) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b81939e commit 62b722e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

g-mcp-tools-complete.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,9 @@ async def bulk_status(batch_id: str, x_api_key: Optional[str] = Header(None)):
13751375
"batch_id": batch_id,
13761376
"status": batch_data.get("status", "unknown"),
13771377
"total_rows": batch_data.get("total_rows", 0),
1378-
"processed_rows": batch_data.get("processed_rows", 0),
1378+
"successful": batch_data.get("successful", 0),
1379+
"failed": batch_data.get("failed", 0),
1380+
"processing_time_seconds": batch_data.get("processing_time_seconds", 0),
13791381
"metadata": {"timestamp": datetime.now().isoformat() + "Z"}
13801382
})
13811383
except Exception as e:

0 commit comments

Comments
 (0)