odysseus-dev/odysseus · error · HTTPException
Not authenticated
Error message
Not authenticated
What it means
Error "Not authenticated" thrown in odysseus-dev/odysseus.
Source
Thrown at routes/gallery/gallery_routes.py:997
return _image_to_dict(img)
except HTTPException:
raise
except Exception:
db.rollback()
logger.exception("patch_gallery_image: update failed")
raise HTTPException(500, "Image update failed")
finally:
db.close()
# ---- POST /api/gallery/download-zip ----
# Bundle the given image ids into a single .zip for download. Used by the
# gallery's bulk "Download" when many photos are selected (one file instead
# of a flood of individual downloads).
@router.post("/api/gallery/download-zip")
async def gallery_download_zip(request: Request):
user = get_current_user(request)
if not user:
raise HTTPException(401, "Not authenticated")
try:
data = await request.json()
except Exception:
data = {}
ids = data.get("ids") or []
if not ids:
raise HTTPException(400, "No images specified")
db = SessionLocal()
try:
imgs = db.query(GalleryImage).filter(
GalleryImage.id.in_(ids),
GalleryImage.owner == user,
).all()
if not imgs:
raise HTTPException(404, "No images found")
import io
import re
import zipfileView on GitHub (pinned to f9235ebbf1)
Solutions
- Log in and retry the request.
- Refresh the session; the login may have expired.
When it happens
Trigger: 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.
Common situations: See trigger scenarios.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of odysseus-dev/odysseus@f9235ebbf1 (2026-08-14).
Data as JSON: /api/errors/aa28e760a6915eef.
Report an issue: GitHub.