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 doesn't work with request body #7469

Closed
tamanna2702 opened this issue Aug 20, 2021 · 3 comments
Closed

GET doesn't work with request body #7469

tamanna2702 opened this issue Aug 20, 2021 · 3 comments

Comments

@tamanna2702
Copy link

Swagger UI gives the error : 'TypeError : Failed to execute fetch on Window.Request with GET/HEAD method cannot have body'.

Citing #5388 which is closed now but since then OpenApi has allowed request body for GET/DELETE methods. : OAI/OpenAPI-Specification#2117

@hkosova
Copy link
Contributor

hkosova commented Aug 20, 2021

GET/HEAD/DELETE request bodies are allowed in OpenAPI v. 3.1, which is not supported yet. You can follow #5891 for updates on OAS 3.1 support.

@hkosova hkosova closed this as completed Aug 20, 2021
@rererihab
Copy link

GET/HEAD/DELETE request bodies are allowed in OpenAPI v. 3.1, which is not supported yet. You can follow #5891 for updates on OAS 3.1 support.

I have version 3.52.1 and it shows the same error when calling a get method with body

@FilipeMarch
Copy link

Is it possible to make a GET request with body nowadays in any branch?
I am still getting the error TypeError: Request has method 'GET' and cannot have a body

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

4 participants