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

AsyncAPI Generate Not Working Behind Node Proxy Registry #1056

Closed
sbilello opened this issue Oct 23, 2023 · 3 comments
Closed

AsyncAPI Generate Not Working Behind Node Proxy Registry #1056

sbilello opened this issue Oct 23, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@sbilello
Copy link

Reason/Context

Please try answering few of those questions

  • Why we need this improvement?
    Developers working behind a proxy
  • How will this change help?
    It will allow the developer to make it work
  • What is the motivation?
    It is a blocker

Description

Please try answering few of those questions

  • What changes have to be introduced?
    Capability to specify the registry mirror
  • Will this be a breaking change?
    No
  • How could it be implemented/designed?
    I am not sure

I am trying to follow the tutorial https://killercoda.com/asyncapi/scenario/streetlight-tut. Unfortunately, it does not work if the npm is using a proxy registry.

$ asyncapi generate fromTemplate asyncapi.yaml @asyncapi/nodejs-template@0.13.3 -o output -p server=mosquitto
Generation in progress. Keep calm and wait a bit... done

Generator Error: request to https://registry.npmjs.org/@asyncapi%2fgenerator-react-sdk failed, reason: self-signed certificate in certificate chain````
@sbilello sbilello added the enhancement New feature or request label Oct 23, 2023
@github-actions
Copy link
Contributor

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sbilello sbilello changed the title AsyncAPI Generate Mirrors Setup AsyncAPI Generate Not Working Behind Node Proxy Registry Oct 23, 2023
@derberg
Copy link
Member

derberg commented Oct 25, 2023

Killercode is an external service that is out of our control. We are not aware of any workaround 😞 only one I see is building code docker container, but this one would also have to be downloaded through proxy + it would make a learning experience "custom" and not the best.

Closing for now, and if you have an idea how that could be fixed, please let us know

@derberg derberg closed this as completed Oct 25, 2023
@sbilello
Copy link
Author

sbilello commented Oct 26, 2023

@derberg. I followed the tutorial steps in my working station without any docker container.
My working station runs behind a node registry proxy.
I was wondering if the async cli has some parameter that would allow me to avoid

$ asyncapi generate fromTemplate asyncapi.yaml @asyncapi/nodejs-template@0.13.3 -o output -p server=mosquitto
Generation in progress. Keep calm and wait a bit... done

Generator Error: request to https://registry.npmjs.org/@asyncapi%2fgenerator-react-sdk failed, reason: self-signed certificate in certificate chain``

My current npm works behind a proxy. I tried to set it global but it is still hitting that endpoint.
Is there a way to pass a parameter to the cli to force the npm registry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants