qnamaker ignores proxy settings #712
Comments
we need to update our auto-rest version, and see where we land on this. |
I noticed your SSL proxy was not https. If you change that, does it work? https-proxy = "http://localhost:8888/" To: https-proxy = "https://localhost:8888/" |
I set the environment variables: NODE_TLS_REJECT_UNAUTHORIZED=0
HTTP_PROXY=http://localhost:8888
HTTPS_PROXY=http://localhost:8888 And used the following command in the Node.js dispatch sample: qnamaker create kb --in cognitiveModels/dispatch.qna --subscriptionKey aXXXXXXX95 --msbot Which succeeded with no problems... I couldn't get a repro; @Zerryth, @stevkan or @nyxsys can any of you get a repro on this? |
@dmvtech set his https-proxy config to "https://localhost:8888/". @stevengum, it looks like you didn't:
Does this repro with that configuration set to https? |
I've ran a few more tests, just to make sure I had all my own ducks in a row. I configured: Tested, no Fiddler running. Success. Changed configuration: Tested, no Fiddler running. Success. |
@dmvtech, I noticed your using Node v8.12.0. I just tried to repro and it succeeded in creating the kb with no errors. I am using Node v10.3.0. Could you update and try again? |
I'd want to maybe clarify my report a little. If you don't see traffic in Fiddler then Fiddler isn't used and if you don't have a corporate proxy to block Internet access |
Careful here! QnAMaker does not use ms-rest-js and implementing Node specific proxy settings will break the library when used on Web clients. The approach here should take into account that both web and node compatibility should be preserved. |
Tool
Name: QnAMaker
Version: 1.0.33
OS: Windows 10
Describe the bug
qnamaker doesn't use any of the node/npm proxy settings:
Any valid ECONNREFUSED would list 127.0.0.1:8888 as the address.
To Reproduce
See above, set the environment variables and run the qnamaker command.
Expected behavior
It should connect using the proxy.
Additional context
Settings in
.npmrc
aren't used either.[bug]
The text was updated successfully, but these errors were encountered: