Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in await request.form #366

Closed
Yunexiz opened this issue Oct 25, 2024 · 1 comment · Fixed by #367
Closed

Error in await request.form #366

Yunexiz opened this issue Oct 25, 2024 · 1 comment · Fixed by #367

Comments

@Yunexiz
Copy link

Yunexiz commented Oct 25, 2024

When using await request.form, an error occurs:

    if field_size > self.max_form_memory_size:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'int' and 'NoneType'

self.max_form_memory_size is None, although I have tried both explicitly setting it and letting it default.

I used 2 files, 1 file sent POST request form data to the erroring file which contains 1 item "inputText". The error immediately occurs at await request.form.

The erroring file should have returned a json response containing a list of dicts.

Environment:

  • Python version: 3.12.6-bullseye
  • Quart version: 0.19.7
@davidism
Copy link
Member

Silly mistake, missing a check in the fix present in 0.19.7. Just released 0.19.8.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants