asyncapi / cli

CLI to work with your AsyncAPI files. You can validate them and in the future use a generator and even bootstrap a new file. Contributions are welcomed!
https://www.asyncapi.com/tools/cli
Apache License 2.0
188 stars 164 forks source link

Add support for proxy #862

Open mamyn0va opened 1 year ago

mamyn0va commented 1 year ago

Reason/Context

Please try answering few of those questions

Description

Please try answering few of those questions

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

Amzani commented 4 months ago

still relevant

Amzani commented 4 months ago

/gfi ts

AayushSaini101 commented 4 months ago

@Amzani @mamyn0va Can you tell me the proper steps to produce the error?

Amzani commented 4 months ago

@AayushSaini101 if you setup an HTTP proxy and try asyncapi validate https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka-asyncapi.yml it fails.

zeppe commented 3 months ago

this impacts me, too. From a cursory look the project (this one and https://github.com/asyncapi/generator) use node-fetch that doesn't support proxies from environment variables etc. need to be passed in.

AayushSaini101 commented 3 months ago

Reason/Context

Please try answering few of those questions

  • The CLI is totally unusable behind a proxy

Description

Please try answering few of those questions

  • The best would be to use env vars http_proxy and https_proxy

@Amzani we can allow two parameters in cli that can support proxy: set HTTP_PROXY=http://your-proxy-server:port set HTTPS_PROXY=http://your-proxy-server:port

zeppe commented 3 months ago

Sounds good to me. Only note, consider supporting lowercase and the all_proxy, no_proxy env for ease of use.

AayushSaini101 commented 2 months ago

This is the implementation plan:

@Souvikns @Amzani @Shurtu-gal If this good for you, Can we submit this issue in the upcoming bounty program ? I would like to work on this. Submission link: https://github.com/orgs/asyncapi/discussions/963#discussioncomment-10495474 thanks :)

AayushSaini101 commented 2 months ago

We have decided with @Souvikns to move this issue with mentorship program