You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
An error occurred when I used Http.request method, error message: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.
As you can see, I didn't add body property to the request options object.
I found that the buildRequestInit function which is used in the request function appended the body: "" property to the request options object, is this cause the issue?
Expected behavior
Request succeeded without error.
Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome
Version: 100
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Env: desktop browser
An error occurred when I used
Http.request
method, error message:Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.
My request options:
As you can see, I didn't add body property to the request options object.
I found that the buildRequestInit function which is used in the request function appended the
body: ""
property to the request options object, is this cause the issue?Expected behavior
Request succeeded without error.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: