π OpenHands: AI-Driven Development
Fix action execution server JSONResponse (#7721)
Boxuan Lie951da7a250a
diff --git a/openhands/runtime/action_execution_server.py b/openhands/runtime/action_execution_server.pyindex 40971801b2..17d0e4548f 100644--- a/openhands/runtime/action_execution_server.py+++ b/openhands/runtime/action_execution_server.py@@ -585,7 +585,10 @@ if __name__ == '__main__':logger.error(f'Validation error occurred: {exc}')return JSONResponse(status_code=422,- content={'detail': 'Invalid request parameters', 'errors': exc.errors()},+ content={+ 'detail': 'Invalid request parameters',+ 'errors': str(exc.errors()),+ },)@app.middleware('http')