Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Proxy settings are not universally respected #968

Closed

Description

@felixvanleeuwen

Versions

What CLI version are you using.
@microsoft/botframework-cli/4.11.0-dev.20200907.c063415
What Nodejs version are you using
win32-x64 node-v12.18.1
What command-line interpreters are you using
Powershell 6 (x64)
What OS are you using
Windows 10

Describe the bug

Give a clear and concise description of what the bug is.
Before each BF CLI command node tries to access registry.npmjs.org without being aware of proxy settings.
This retries for about a minute and then the command actually goes through in about 2-3 seconds.
We have a script that runs about 30-40 of these commands and it takes about 45 minutes to run it.
When a temporary exception is made for this address in our firewall the script takes about 3-4 minutes to run.

To Reproduce

Steps to reproduce the behavior:

  1. Get behind a corporate proxy;
  2. Get behind a corporate firewall;
  3. Configure Node to use the proxy;
  4. Set environment variables to use the proxy;
  5. Run any of the following commands:
  • bf luis:version:export
  • bf luis:version:import
  • bf luis:train:run
  • bf luis:application:publish
  • bf qnamaker:kb:export
  • bf qnamaker:kb:replace
  • bf luis:version:rename
  • bf luis:convert
  • bf luis:version:list
  1. Wait for about a minute for the command to complete;
  2. That was the bug.

Expected behavior

Give a clear and concise description of what you expected to happen.
Every request that the BF CLI (and its dependencies) makes respects proxy settings, whether environment or Node.

[bug]

Activity

  1. added
    customer-reported
    needs-triage
    on Sep 14, 2020
  2. added
    Bot Services
    on Sep 14, 2020
  3. munozemilio commented on Sep 15, 2020

    @munozemilio
    Contributor

    Hello felixvanleeuwen, thanks for reporting this. We will asses and address this issue during the current sprint.

  4. added
    customer-replied-to
    on Sep 15, 2020
  5. felixvanleeuwen commented on Oct 7, 2020

    @felixvanleeuwen
    Author

    bf orchestrator:nlr:get is a major offender.
    The command itself appears to not respect the proxy settings and fetches directly from aka.ms.

  6. cleemullins commented on Oct 21, 2020

    @cleemullins
    Contributor

    Per Emilio Munoz (@munozemilio) this should land in R11.

  7. added
    Size: S
    P1
    Area: SDK
    and removed
    needs-triage
    on Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: SDKBot ServicesP1Size: Scustomer-replied-tocustomer-reported

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions