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

gopkg.in/yaml.v3: unrecognized import path "gopkg.in/yaml.v3": reading https://gopkg.in/yaml.v3?go-get=1: 502 Proxy Error #13829

Closed
2 tasks done
redjonzaci opened this issue Jun 20, 2024 · 6 comments
Labels
functions Issues tied to the functions category pending-triage Issue is pending triage

Comments

@redjonzaci
Copy link
Contributor

How did you install the Amplify CLI?

No response

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

No response

Amplify CLI Version

12.12.1

What operating system are you using?

Windows

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

No manual changes made

Describe the bug

i get the the error in the title in the Build phase of the pipeline, are you able to check if there's more information about the error?

Expected behavior

i expect the build to pass

Reproduction steps

  1. add a Go function
  2. use yaml.v3 package

Project Identifier

No response

Log output

No response

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.
@redjonzaci redjonzaci added the pending-triage Issue is pending triage label Jun 20, 2024
@redjonzaci
Copy link
Contributor Author

i wasn't able to send the report generated by amplify diagnose --send-report, but let me know if i can share the appId.

@redjonzaci
Copy link
Contributor Author

related: #13341

@redjonzaci
Copy link
Contributor Author

after that, i got: gopkg.in/[email protected]: unrecognized import path "gopkg.in/yaml.v2": https fetch: Get "https://gopkg.in/yaml.v2?go-get=1": net/http: TLS handshake timeout

@ykethan
Copy link
Member

ykethan commented Jul 2, 2024

Hey @redjonzaci, thank you for reaching out. Tried reproducing the issue using the following but did not observe this error.

  1. amplify add function
  2. cd into the function src folder and ran go get gopkg.in/yaml.v3 to install the package
  3. used the example provided on https://github.com/go-yaml/yaml/tree/v3?tab=readme-ov-file#example
  4. then ran amplify push and did not observe any errors.

to confirm the reproduction steps provide a yaml.v3 as package version but the error message suggest the error message on yaml.v2. Has the import been updated on the function code?

@ykethan ykethan added functions Issues tied to the functions category pending-response Issue is pending response from the issue author labels Jul 2, 2024
@redjonzaci
Copy link
Contributor Author

thanks for trying! it seems like it was a transient issue.

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Jul 2, 2024
Copy link

github-actions bot commented Jul 2, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions Issues tied to the functions category pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

2 participants