litellm/tests/test_litellm/proxy/openai_files_endpoint
mateo-berri bede8b5ea4 fix(proxy): stop shipping the literal string "None" as error type and param
The proxy's exception tails defaulted `type` and `param` to the four-character
string "None", which is neither a known OpenAI error type nor the JSON null the
nullable `param` field is typed as, so a client's error handler matched nothing
and fell into its generic branch.

Lifts the helpers PR #39521 added for the unified LLM endpoints into
litellm/proxy/common_utils/openai_error_payload.py and calls them from the file,
rerank, image, realtime, anthropic, and pass-through route families, plus the
shared handle_exception_on_proxy handler that the management, batches,
fine-tuning, credential, SCIM, guardrail, and customer routes funnel through.

The remaining families (proxy_server, auth, health, spend tracking, and
management endpoints) follow in separate PRs so each slice stays QA'able on a
live proxy.
2026-09-03 02:49:49 -07:00
..
test_batch_guardrails.py fix(proxy): scan batch records with the content hooks that are not guardrails (#37786) 2026-08-21 11:20:23 -07:00
test_files_batch_file_validation.py fix(files): treat nonpositive max_batch_file_size_mb as no cap 2026-08-19 15:05:17 -07:00
test_files_common_utils.py fix(bedrock): map real batch record counts and guard zero-count retire 2026-08-29 01:05:36 -07:00
test_files_endpoint.py fix(proxy): stop shipping the literal string "None" as error type and param 2026-09-03 02:49:49 -07:00
test_general_upload_validation.py fix(security): restrict and validate file uploads at /v1/files and /upload/logo (#39379) 2026-09-02 14:27:46 -07:00
test_storage_backend_service.py fix(proxy): skip prisma-dependent hooks when no database is attached 2026-08-08 01:44:56 -07:00