{"record":{"id":"db56b7536cb7a94e","repo":"odysseus-dev/odysseus","slug":"all-file-uploads-failed","errorCode":null,"errorMessage":"All file uploads failed","messagePattern":"All file uploads failed","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"routes/upload_routes.py","lineNumber":316,"sourceCode":"                    \"hash\": meta[\"hash\"],\n                    \"checksum_sha256\": meta.get(\"checksum_sha256\") or meta[\"hash\"],\n                    \"uploaded_at\": meta[\"uploaded_at\"],\n                    \"created_at\": meta.get(\"created_at\") or meta[\"uploaded_at\"],\n                    \"width\": meta.get(\"width\"),\n                    \"height\": meta.get(\"height\"),\n                    \"is_duplicate\": meta.get(\"is_duplicate\", False)\n                }\n                if gallery_id:\n                    item[\"gallery_id\"] = gallery_id\n                out.append(item)\n            except HTTPException:\n                raise\n            except Exception as e:\n                logger.error(f\"Failed to process upload {u.filename}: {str(e)}\")\n                continue\n        \n        if not out:\n            raise HTTPException(500, \"All file uploads failed\")\n            \n        return {\"files\": out}\n    \n    @router.post(\"/cleanup\")\n    async def manual_cleanup(request: Request):\n        \"\"\"Manually trigger cleanup of old uploads.\"\"\"\n        require_admin(request)\n        try:\n            cleaned_count = await asyncio.to_thread(\n                _run_reference_safe_cleanup,\n                upload_handler,\n            )\n        except UploadCleanupSafetyError:\n            logger.exception(\"Upload cleanup aborted because index safety checks failed\")\n            raise HTTPException(\n                503,\n                \"Upload cleanup aborted because upload index integrity could not be verified\",\n            )","sourceCodeStart":298,"sourceCodeEnd":334,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/upload_routes.py#L298-L334","documentation":"Error \"All file uploads failed\" thrown in odysseus-dev/odysseus.","triggerScenarios":"Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.","commonSituations":"See trigger scenarios.","solutions":["Check the per-file errors and server logs, then re-upload.","Verify file sizes and types are within the allowed limits."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}