Howto configure proxy for botium-cli

Hello!! I need to configure my company´s http-proxy and https-proxy for some sample bots.

Please could you help me to make it right? ¿What file-s should I include and what commands? ¿where can I read the docs about this item? Actually I need to configure proxy values for Watson, kore and Microsoft and we haven´t found info to do exactly what we need.

Thanks in advance!!

Usually this can be done by setting the HTTP_PROXY and/or HTTPS_PROXY environment variables.

For Watson it is described here:

There is also something in our wiki when using Botium Box:

Hello Florian!! thanks for your answer. Here is what I´ve tried with Watson and QnAMaker:

Created System variables HTTP_PROXY and HTTPS_PROXY

For watson test:

  • added WATSON_HTTP_PROXY_HOST and WATSON_HTTP_PROXY_PORT into capabilities file
  • run commands botium-cli init and botium-cli emulator
    Get timeout as response: failed

For QnAMaker:
just with new system variables added before (http_proxy and https_proxy)
run botium-cli and botium-cli run and the response is:

C:\botium\QnAMaker>botium-cli emulator

| __ ) / _ \ |_ | | | | | | | | / |
| _ \ | | | | | | | | | | | | | |/| |
| |
) | | || | | | | | | || | | | | |
|/ ___/ || || ___/ || ||

Chatbot online.
Enter “#SAVE ” to save your conversation into your convo-dire
ctory, #EXIT to quit or just a message to send to your Chatbot!
Error: rest request failed: ETIMEDOUT
at Request._callback (C:\Users\AppData\Roaming\npm\node_modules\boti
at self.callback (C:\Users\AppData\Roaming\npm\node_modules\botium-c
at Request.emit (events.js:314:20)
at Request.EventEmitter.emit (domain.js:483:12)
at Timeout. (C:\Users\AppData\Roaming\npm\node_modules\bo
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)

seems to be a conn problem with destination cloud (out of our organisation).
The difference with the version that works is:

It works: pc with home wifi conn. Botium installed and test ok (no proxies conf)
It doesnt work: private cloud virtual machine, corp proxy configurated, Botium installed and system variables (for proxy created).

Any idea or suggestion?
Thank you very much again for your help.

You can try this as well: Botium Connectors — Botium documentation (QnaMaker Botium connector is based on this Generic HTTP/JSON connector).

I would check if the QnaMaker and Watson endpoints are reachable via a proxy from the machine first with another tool like curl,.

Tested the capability value “SIMPLEREST_PROXY_URL” located in the botium.cli file for QnAMaker and the same problem.

We are now going to test curl and try to reach the endpoints.
Thanks again Florian!!

Hello good morning. The problem may be a comms one because curl doesn´t work from inside our company instalations. So we´ll let comms techs work and I´ll come back in a few days and will refresh news.
Thanks again for all your help :slight_smile:

1 Like

you’re welcome!