0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[メモ] AWS SAMのsam local start-apiでcode 400, message Bad ~と出る時は

Last updated at Posted at 2020-05-18

事象

sam local start-apicode 400, message Bad request version とか code 400, message Bad HTTP/0.9 request type と表示されて文字化けしたメッセージが出てエラーになる。

対応

HTTPSでリクエストしていないか確認すること。
sam local start-api した場合 http でリクエストの受付が開始されるが、そこに https でリクエストするとこうなる。

なおDevツール等でよく見ると net::ERR_SSL_PROTOCOL_ERROR と出ている。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?