LoginSignup
0
0

More than 3 years have passed since last update.

DynamoDBのローカル開発で「connect ECONNREFUSED」

Posted at

ここを見ながらlambda+DynamoDBのローカル環境を整えてたところ、

ローカルで TypeScript + AWS SAM (Lambda/DynamoDB) の開発環境を構築する
https://qiita.com/tamo_breaker/items/f86c9b5fc6991813e3ca

「connect ECONNREFUSED 127.0.0.1:8000」でエラーになる。

{
    "errorType": "Runtime.UnhandledPromiseRejection",
    "errorMessage": "NetworkingError: connect ECONNREFUSED 127.0.0.1:8000",
}

答えはここを参照した。
http://danlec.com/st4k#questions/48926260

options.endpoint = "http://host.docker.internal:8000"

localhost:8000じゃなくてhost.docker.internal:8000にしないといけないのはなんで?

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