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

Request is not accepted in test case Multiple files and JSON payloads as multi part request #2649

Closed
buzzerrookie opened this issue Jul 17, 2024 · 0 comments · Fixed by #2650

Comments

@buzzerrookie
Copy link
Contributor

In test app119, there are mutiple file and JSON payloads in a controller method. When sending requests to the /multi endpoint via Swagger UI, the request is not accepted.
In Chrome, a response with code 415 is returned, which is Unsupported Media Type. The Spring boot error is org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'application/octet-stream' is not supported.

Version:

  • spring boot 3.3.1
  • springdoc-openapi-starter-webmvc-ui 2.6.0

Expected behavior

  • The response code should be 200.

Screenshots
swagger
payload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant