Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
142c4d17
Unverified
Commit
142c4d17
authored
Jan 06, 2026
by
Masataro Asai
Committed by
GitHub
Jan 06, 2026
Browse files
make 500: InternalServerError more informative (#20610)
Signed-off-by:
Masataro Asai
<
guicho2.71828@gmail.com
>
parent
6f5e6533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
vllm/v1/engine/async_llm.py
vllm/v1/engine/async_llm.py
+11
-3
No files found.
vllm/v1/engine/async_llm.py
View file @
142c4d17
...
...
@@ -461,9 +461,9 @@ class AsyncLLM(EngineClient):
raise
# Request validation error.
except
ValueError
:
except
ValueError
as
e
:
if
self
.
log_requests
:
logger
.
info
(
"Request %s failed (bad request)."
,
request_id
)
logger
.
info
(
"Request %s failed (bad request)
: %s
."
,
request_id
,
e
)
raise
# Unexpected error in the generate() task (possibly recoverable).
...
...
@@ -471,7 +471,15 @@ class AsyncLLM(EngineClient):
if
q
is
not
None
:
await
self
.
abort
(
q
.
request_id
,
internal
=
True
)
if
self
.
log_requests
:
logger
.
info
(
"Request %s failed."
,
request_id
)
try
:
s
=
f
"
{
e
.
__class__
.
__name__
}
:
{
e
}
"
except
Exception
as
e2
:
s
=
(
f
"
{
e
.
__class__
.
__name__
}
: "
+
"error during printing an exception of class"
+
e2
.
__class__
.
__name__
)
logger
.
info
(
"Request %s failed due to %s."
,
request_id
,
s
)
raise
EngineGenerateError
()
from
e
def
_run_output_handler
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment