Uncaught (in promise) TypeError: Failed to construct ‘Request’: Request with GET/HEAD method cannot have body.

4.0

Uncaught (in promise) TypeError: Failed to construct ‘Request’: Request with GET/HEAD method cannot have body.

「Uncaught (in promise) TypeError: Failed to construct ‘Request’: Request with GET/HEAD method cannot have body.」は、GETまたはHEADリクエストにRequestBodyを付けて送ろうとした時に発生するエラーです。

RapiDocではfetch API使用しており、GETまたはHEADにRequestbodyを付けるとエラーがでます。HTTP仕様(RFC7231)で非推奨となります。

株式会社CONFRAGE ITソリューション事業部をもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む

タイトルとURLをコピーしました