mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-12 13:36:41 +00:00
🔇 Remove error log when parsing malformed JSON body as it's a client error (#1351)
This commit is contained in:
parent
807522c616
commit
2351fb5623
1 changed files with 0 additions and 1 deletions
|
|
@ -179,7 +179,6 @@ def get_request_handler(
|
||||||
if body_bytes:
|
if body_bytes:
|
||||||
body = await request.json()
|
body = await request.json()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error getting request body: {e}")
|
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400, detail="There was an error parsing the body"
|
status_code=400, detail="There was an error parsing the body"
|
||||||
) from e
|
) from e
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue