Spaces:
Build error
Build error
Download app/api/routes/debug_storage.py from AdarshDS/ThesisBackend: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/AdarshDS/ThesisBackend/resolve/main/app/api/routes/debug_storage.py
- Command line
-
hf download hf://spaces/AdarshDS/ThesisBackend/app/api/routes/debug_storage.py
-
curl -L -o debug_storage.py https://huggingface.co/spaces/AdarshDS/ThesisBackend/resolve/main/app/api/routes/debug_storage.py
491 Bytes
| """ | |
| Pre-upload diagnostics: verify Supabase / MinIO config without ingesting a PDF. | |
| """ | |
| from fastapi import APIRouter | |
| from app.services.object_storage import storage_debug_snapshot | |
| router = APIRouter(prefix="/debug", tags=["Debug"]) | |
| def debug_storage(): | |
| """ | |
| Check storage provider, import, client, bucket existence, and root file listing. | |
| Call this before POST /upload-pdf/ to verify Supabase is reachable. | |
| """ | |
| return storage_debug_snapshot() | |