amplify-cli: CLI error on amplify mock api: Provided options.stopPort...

Describe the bug Followed the Angular tutorial to create one of the sample GraphQL APIs (Blog/Post/Comment sample). API and service works both in the app and remotely connecting via Graphql console (playground).

Running amplify mock api returns the following error:

Failed to start API Mock endpoint Error: Provided options.stopPort(40000is less than options.startPort (62224)

Additional context Add any other context about the problem here.

Amplify CLI version is 1.12.0 and amplify packages are

    "aws-amplify": "^1.1.36",
    "aws-amplify-angular": "^3.0.11",

running node v10.12.0 on macos 10.14

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 16 (9 by maintainers)

Most upvoted comments

We have updated the Dynamo DB simulator to use a different library to get the free port in https://github.com/aws-amplify/amplify-cli/commit/90a423cc1ecaff3dc8ebb9b5e526e1256d36d835. This should fix this problem. The change is not release yet. I will update here when the change gets release

Thanks for your message @RoelVanderPaal. I’ve upgraded my node version to v12.8.1

Unfortunately the problem still persist 😕