Skip to content

Tags: Recurse-ML/fastapi

Tags

eval-bug-233

Toggle eval-bug-233's commit message
Add field to pydantic model

eval-bug-226

Toggle eval-bug-226's commit message
Simple syntax errors in python

eval-bug-225

Toggle eval-bug-225's commit message
Simple syntax errors in python

eval-bug-221

Toggle eval-bug-221's commit message
Syntax errors

Simply python syntax errors

eval-bug-220

Toggle eval-bug-220's commit message
Syntax errors

Simply python syntax errors

eval-bug-219

Toggle eval-bug-219's commit message
1. Bypassing Starlette's built-in functionality: The Starlette Reques…

…t class provides the request.json() method specifically for parsing JSON request bodies. This method handles character encoding

  detection, error handling, and other edge cases that may occur in HTTP requests.
  2. Incorrect encoding handling: The manual body_bytes.decode() call assumes a default encoding (likely UTF-8), but HTTP requests can come with various encodings. Starlette's request.json() method
  properly handles encoding detection based on the request's Content-Type header.
  3. Duplicated parsing: This approach parses the request body twice - once when calling request.body() and again when manually parsing the JSON, which is inefficient. Starlette's implementation
  optimizes this.
  4. Missing error handling: Starlette's implementation provides standardized error handling for malformed JSON, while the manual implementation would require additional error handling code.
  5. Inconsistency with other code paths: This creates inconsistency with other code paths that still use request.json(), making the code harder to maintain and potentially introducing different
  behaviors for the same input.

0.115.8

Toggle 0.115.8's commit message
🔖 Release version 0.115.8

0.115.7

Toggle 0.115.7's commit message
🔖 Release version 0.115.7

0.115.6

Toggle 0.115.6's commit message
🔖 Release version 0.115.6

0.115.5

Toggle 0.115.5's commit message
🔖 Release version 0.115.5