Skip to content

Commit e951da7

Browse files
authored
Fix action execution server JSONResponse (#7721)
1 parent f830d58 commit e951da7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

openhands/runtime/action_execution_server.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,10 @@ async def validation_exception_handler(
585585
logger.error(f'Validation error occurred: {exc}')
586586
return JSONResponse(
587587
status_code=422,
588-
content={'detail': 'Invalid request parameters', 'errors': exc.errors()},
588+
content={
589+
'detail': 'Invalid request parameters',
590+
'errors': str(exc.errors()),
591+
},
589592
)
590593

591594
@app.middleware('http')

0 commit comments

Comments
 (0)