WA-Testing-Tool icon indicating copy to clipboard operation
WA-Testing-Tool copied to clipboard

Connect to Watson cloud using proxy

Open lagarwalla opened this issue 3 years ago • 1 comments

Is there an easy way to connect to Watson URL using proxy. The customer organisation can connect to URL using proxy, hence looking for a way to use proxy in the tool.

lagarwalla avatar May 04 '21 15:05 lagarwalla

Lalit, it looks like the Watson SDK lets you pass in proxies:

https://github.com/watson-developer-cloud/python-sdk/issues/681 https://stackoverflow.com/questions/53738472/calling-watson-discovery-api-from-behind-a-http-proxy-server-using-python-sdk

I suggest defining two new config.ini proprerties (say, url_http_proxy and url_https_proxy) and if they are not None passing them to the AssistantV1 constructor in run.py. That looks like it should work.

andrewrfreed avatar May 04 '21 18:05 andrewrfreed