botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Required Help in configuring proxy in VS Code

Open vignestheo opened this issue 10 years ago • 5 comments

Hello Team

I developed bot everything is working fine for me without any configuration for proxy [where i can install extension and can access bot out side via ngork too] but when i thought of sending bot data to my custom API using Request module in Node js.

It's keep on throwing me error that configure the proxy but i kept the settings in both node npm config and in VS code but nothing helps ... :-(

Please some one provide your assistance

vignestheo avatar Oct 19 '16 19:10 vignestheo

when i tried to acccess URL i.e. API by using below coding bot.dialog('/', [ function (session) {

    request("http://theoteq.xyz/fruitroid/home/getDonor", function(error, response, body) {
             console.log(body);

        });

Unfortunately, you do not have the correct
proxy settings configured to access the internet.
This is what printing in command prompt

vignestheo avatar Oct 19 '16 20:10 vignestheo

@vignestheo This sounds like a platform configuration problem rather than botbuilder. Are you able to query the url using a command line tool like curl? e.g.:

C:\> curl http://theoteq.xyz/fruitroid/home/getDonor

If success, you should see:

StatusCode        : 200
StatusDescription : OK
...

eanders-ms avatar Oct 19 '16 20:10 eanders-ms

even i am not able to get output for any http protocol URL say eg http://www.modulus.io

but when i provide it as https protocol its working for me :-( then is it mandatory to change my to https instead of http?

vignestheo avatar Oct 19 '16 20:10 vignestheo

When i hit the URL in browser , Please see the screenshot for the same

image

vignestheo avatar Oct 19 '16 20:10 vignestheo

Myself Resolved the issue anyway thanks for your immediate response.

I am happy i resolved...:-D

vignestheo avatar Oct 19 '16 20:10 vignestheo