Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
0618 opened this issue Apr 3, 2024 · 1 comment
Open
2 tasks done

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

0618 opened this issue Apr 3, 2024 · 1 comment
Labels
bug Something isn't working functions Issues tied to the functions category mock Issues tied to the mock functionality p3

Comments

@0618
Copy link
Contributor

0618 commented Apr 3, 2024

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

# 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.
@0618 0618 added pending-triage Issue is pending triage bug Something isn't working feature-request Request a new feature and removed pending-triage Issue is pending triage labels Apr 3, 2024
@0618
Copy link
Contributor Author

0618 commented Apr 3, 2024

mock doesn't work because our Go Runtime has already upgraded from go1.x (#13671), which means the RPC we use for mock doesn't work anymore.

ref:

@ykethan ykethan added p3 functions Issues tied to the functions category mock Issues tied to the mock functionality and removed feature-request Request a new feature labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working functions Issues tied to the functions category mock Issues tied to the mock functionality p3
Projects
None yet
Development

No branches or pull requests

2 participants