Skip to content

Commands fail when behind corporate proxy #665

@SC-CTS

Description

@SC-CTS

When running the commands from a network without a proxy configured, e.g. twilio serverless:logs --service-sid ZSxxx --environment ZExxx it works fine.

But when I am in my companies network, where we have a https/http proxy, the CLI commands always fail with

│ ERROR
│
│ Response code 401 (Unauthorized)

All other CLI and non-CLI tools work fine with the proxy configuration on my device.

Proxy configuration active:

  • All the https_proxy/http_proxy/... variables are set in the environment & launchctl and pointing a local https://github.com/samuong/alpaca instance
  • Local alpaca instance is configured to authenticate towards the upstream proxy
  • NODE_EXTRA_CA_CERTS with the CAs the proxy uses
  • TWILIO_CA_BUNDLE is set to a pem file with all global CAs & company internal CAs

Environment:
OS: macOS 15.7.1 (M3 Pro)
Term: ZSH
NodeJS: 24.8.0
CLI Version: twilio-cli/6.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions