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

Upload fails with multipart/form-data #150

Open
romado77 opened this issue Feb 24, 2021 · 2 comments
Open

Upload fails with multipart/form-data #150

romado77 opened this issue Feb 24, 2021 · 2 comments
Assignees
Labels
bug Something isn’t working openapi Issue or pull request related to OpenAPI code
Milestone

Comments

@romado77
Copy link

Long story short

Upload with multipart/form-data fails when schema validation is enabled. Exception "ValueError: Could not find starting boundary b'--somestuff' thrown when trying to access multipart info.

Steps to reproduce

curl --location --request POST 'http://localhost:8080/api/v1/'
--form 'someinfo="sdjkhflksjhdflkjhlkjh"'
--form 'file=@"./test.zip"'

Result: exception, no data in StreamReader

  • Run client without validation:

curl --location --request POST 'http://localhost:8080/api/v2/'
--form 'someinfo="sdjkhflksjhdflkjhlkjh"'
--form 'file=@"./test.zip"'

Result: file upload is ok

Environment

Python - 3.8.5
aiohttp - 3.7.3
rororo - 2.2.0

@playpauseandstop
Copy link
Owner

@romado77

Thank for your request. I’m now working on localizing problem in rororo test suite and to find an option to fix it.

@playpauseandstop playpauseandstop self-assigned this Feb 28, 2021
@playpauseandstop playpauseandstop added bug Something isn’t working openapi Issue or pull request related to OpenAPI code labels Feb 28, 2021
@playpauseandstop playpauseandstop added this to the 2.3 milestone Feb 28, 2021
@playpauseandstop playpauseandstop modified the milestones: 2.3, 3.0 Nov 6, 2021
@playpauseandstop playpauseandstop modified the milestones: 3.0, 4.0 Aug 9, 2022
@playpauseandstop
Copy link
Owner

That's for sure an issue. Need to ensure that this is possible to upload files with rororo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working openapi Issue or pull request related to OpenAPI code
Projects
None yet
Development

No branches or pull requests

2 participants