Skip to content

Support for HTTP proxy #122

@erhhung

Description

@erhhung

Q&A (please complete the following information)

  • CLI version: 0.2.8
  • OS: macOS 10.15.5
  • Node.js version: v12.18.0

Describe the bug you're encountering

Cannot connect to api.swaggerhub.com behind corporate HTTP proxy.

To reproduce...

Steps to reproduce the behavior:

$ swaggerhub api:get my-org/my-api/0.1
 ›   Error: request to https://api.swaggerhub.com/apis/my-org/my-api/0.1 failed, reason: connect ETIMEDOUT
 ›    18.214.171.198:443

Expected behavior

CLI should use standard environment variables http_proxy,https_proxy.

Screenshots

Additional context or thoughts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions