fix: web interface 422 errors
Local Docker Build (Dev) / build-dev (push) Successful in 4s
Local Docker Build (Main) / build (push) Successful in 30s
Local Docker Build (Main) / deploy (push) Successful in 1s

This commit is contained in:
2025-10-20 08:51:14 -04:00
parent 741a283df0
commit f6a161a014
3 changed files with 26 additions and 19 deletions
+3 -12
View File
@@ -149,18 +149,9 @@ async def get_tv_series_list(dependencies: dict,
"""Get paginated list of TV series with episode counts"""
db = dependencies["db"]
# Debug logging for 422 troubleshooting
try:
print(f"DEBUG: Series list params - skip:{skip}, limit:{limit}, search:'{search}', imdb_search:'{imdb_search}', date_filter:'{date_filter}', source_filter:'{source_filter}'")
# Validate date_filter values
if date_filter and date_filter not in ['complete', 'incomplete', 'none']:
print(f"ERROR: Invalid date_filter value: '{date_filter}'")
raise HTTPException(status_code=422, detail=f"Invalid date_filter: must be 'complete', 'incomplete', or 'none', got '{date_filter}'")
except Exception as e:
print(f"ERROR: Parameter validation failed: {e}")
raise
# Validate date_filter values
if date_filter and date_filter not in ['complete', 'incomplete', 'none']:
raise HTTPException(status_code=422, detail=f"Invalid date_filter: must be 'complete', 'incomplete', or 'none', got '{date_filter}'")
with db.get_connection() as conn:
cursor = conn.cursor()