Skip to content

Golang mock tcp :8900: connect: connection refused #13693

@0618

Description

@0618

How did you install the Amplify CLI?

yarn

If applicable, what version of Node.js are you using?

v18.19.0

Amplify CLI Version

12.10.2

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

N/A

Describe the bug

when running amplify mock function <functionID> --event src/event.json, got error

tcp :8900: connect: connection refused

Expected behavior

when running amplify mock function <functionID> --event src/event.json, lambda should work as expected.

Reproduction steps

  1. in a new folder, yarn init -y
  2. amplify init -y
  3. amplify add function, choose go.
  4. run amplify mock function <functionID> --event src/event.json, see the error.

Project Identifier

No response

Log output

Details
# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfunctionsIssues tied to the functions categorymockIssues tied to the mock functionalityp3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions