質問編集履歴

3

タイトル修正

2019/03/07 08:16

投稿

Otazoman
Otazoman

スコア44

test CHANGED
@@ -1 +1 @@
1
- SAM-CLIのAPIGatewayで127.0.0.1で接続でき
1
+ SAM-CLIのAPIGatewayでlocalhostではレスポンス200で返ってくるのに127.0.0.1だと502エラーと
test CHANGED
File without changes

2

レスポンスの補足

2019/03/07 08:16

投稿

Otazoman
Otazoman

スコア44

test CHANGED
File without changes
test CHANGED
@@ -300,6 +300,52 @@
300
300
 
301
301
  接続できますが、SAM-CLIのAPIGateWayへは接続できない状態です。
302
302
 
303
+ ポートを8080に変更してAPIGatewayを起動しましたがそれでもうまくいきませんでした。
304
+
305
+
306
+
307
+ curlでのレスポンスです。エラーとなる方です。
308
+
309
+
310
+
311
+ ```コマンド
312
+
313
+ $ curl -D - http://localhos127.0.0.1:3000/hello
314
+
315
+ HTTP/1.1 502 cannotconnect
316
+
317
+ Via: 1.1 proxyaddress (McAfee XXXXX)
318
+
319
+ Content-Type: text/html
320
+
321
+ Cache-Control: no-cache
322
+
323
+ Content-Length: 2556
324
+
325
+ Proxy-Connection: Keep-Alive
326
+
327
+ ```
328
+
329
+
330
+
331
+ 正常時のレスポンスです。
332
+
333
+ ```コマンド
334
+
335
+ $ curl -D - http://localhost:3000/hello
336
+
337
+ HTTP/1.0 200 OK
338
+
339
+ Content-Type: application/json
340
+
341
+ Content-Length: 26
342
+
343
+ Server: Werkzeug/0.14.1 Python/2.7.15rc1
344
+
345
+ Date: Wed, 06 Mar 2019 XX:XX:XXX GMT
346
+
347
+ ```
348
+
303
349
 
304
350
 
305
351
  ### 補足情報(FW/ツールのバージョンなど)

1

タイトルが分かりにくかったので修正しました。

2019/03/06 08:44

投稿

Otazoman
Otazoman

スコア44

test CHANGED
@@ -1 +1 @@
1
- SAM-CLIの実行につ
1
+ SAM-CLIのAPIGatewayで127.0.0.1で接続できな
test CHANGED
File without changes