codetheweb / serverless-step-functions-local

Run AWS step functions offline with Serverless
MIT License
17 stars 17 forks source link

Inaccessible host error after upgrading to node 18 #25

Closed cullylarson closed 9 months ago

cullylarson commented 9 months ago

I started getting this error after upgrading to Node 18:

 UnknownEndpoint: Inaccessible host: `localhost' at port `8083'. This service may not be available in the `us-east-2' region.

I found a solution. Just posting in case someone else runs into this issue. The solution is to manually set stepFunctionsEndpoint to http://127.0.0.1:8083:

stepFunctionsLocal:
  # The default for stepFunctionsEndpoint is http://localhost:8083, but for
  # some reason `localhost` doesn't work after upgrading to node 18.
  stepFunctionsEndpoint: http://127.0.0.1:8083
cullylarson commented 9 months ago

I posted a solution in the issue description. Closing.