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

GET request doesn't work with a request body #1250

Closed
tamanna2702 opened this issue Aug 20, 2021 · 1 comment
Closed

GET request doesn't work with a request body #1250

tamanna2702 opened this issue Aug 20, 2021 · 1 comment

Comments

@tamanna2702
Copy link

tamanna2702 commented Aug 20, 2021

Describe the bug

  • I am using springdoc-openapi version 1.5.9 and have a GET method in my controller with a request body. The endpoint works completly fine with postman but with Swagger UI, it gives 'TypeError : Failed to execute fetch on Window.Request with GET/HEAD method cannot have body'.

Expected behavior

@bnasslahsen
Copy link
Contributor

@tamanna2702,

This is not handled in springdoc-openpi code, but in the swagger-ui code.
This is the related thread: swagger-api/swagger-ui#5388

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

No branches or pull requests

2 participants