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

[Question] Bot Framework https not found when deployed it azure

Open hardikchoudhary opened this issue 9 years ago • 31 comments

hardikchoudhary avatar Jun 19 '17 20:06 hardikchoudhary

@hardikchoudhary can you please provide information so we can assist you? Right now we have basically nothing to work with.

JasonSowers avatar Jun 19 '17 20:06 JasonSowers

Hi jason

I have the folder of my applicatiob...... Name xyz.... In that folder i have app.js and other js files and one folder with npm_modules that is having multiplw folder....

I have deployed it using visual studio

To azure wep app

But wheb debug my bot. In bot emulator.... Giving url of azure website /api/messages

And app id and passwrd

Connect getting error in logs.... Https://azurewebsite not found

404

Olease helpe me for same... Or m i deploying wrong

Thanks Hardik

On 20-Jun-2017 5:23 am, "Jason Sowers" [email protected] wrote:

Closed #2985 https://github.com/Microsoft/BotBuilder/issues/2985.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/2985#event-1130091754, or mute the thread https://github.com/notifications/unsubscribe-auth/ANs5qphLCqoNNvYBs5IsyF4EPhEV2lzJks5sFwoSgaJpZM4N-u_r .

hardikchoudhary avatar Jun 20 '17 08:06 hardikchoudhary

hI TEAM

I am attaching with screen shot

I have deployed my solution in debug mode to the azure website, this is my solution structure , its node js code

[image: Inline image 2]

I have deployed it through VS , dont know its deployed or not. But get message published succefully When I go to my website

its shows

You do not have permission to view this directory or page.

and when i connect on bot emulator with url

[image: Inline image 1]

I am getting this error

Please let me know what i can do

Thanks

On Tue, Jun 20, 2017 at 1:57 AM, Jason Sowers [email protected] wrote:

@hardikchou https://github.com/hardikchoudhary

dhary https://github.com/hardikchoudhary can you please provide information so we can assist you? Right now we have basically nothing to work with.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/2985#issuecomment-309563889, or mute the thread https://github.com/notifications/unsubscribe-auth/ANs5qnBEbUhdE3P_no9m4YimNBnUBLnrks5sFtmwgaJpZM4N-u_r .

hardikchoudhary avatar Jun 20 '17 15:06 hardikchoudhary

Hi Hardik,

Try following this guide to deploy to Azure

JasonSowers avatar Jun 20 '17 15:06 JasonSowers

Hi jason

I have followed same as my files are deployed as I am getting this message

You do not have permission to view this directory or page.

hardikchoudhary avatar Jun 20 '17 15:06 hardikchoudhary

I have not added the app id and password in app service in azure

hardikchoudhary avatar Jun 20 '17 15:06 hardikchoudhary

can you please tell me how i can debug node js bot when it is deployed to azure

hardikchoudhary avatar Jun 20 '17 15:06 hardikchoudhary

but i have added in app.js file directly app id and password

hardikchoudhary avatar Jun 20 '17 15:06 hardikchoudhary

You need to save your Microsoft App ID and password in your Application Settings in order for your bot to function properly.

nwhitmont avatar Jun 20 '17 16:06 nwhitmont

nwhitmont i have added it in application setting as well on azure

but still the same error There was an error sending this message to your bot: HTTP status code NotFound

image

and error on web chat below my message

hardikchoudhary avatar Jun 20 '17 16:06 hardikchoudhary

what is your bot name, bot handle and App ID as you registered in the Bot Portal?

nwhitmont avatar Jun 20 '17 16:06 nwhitmont

Bot handle : NearByMetro url : https://nearbymetro.azurewebsites.net/api/messages app id 3dfa0867-614d-40d2-8092-08fd56df09f6

Please let me know if you need more info

hardikchoudhary avatar Jun 20 '17 16:06 hardikchoudhary

Bot name :NearByMetro Bot handle : NearByMetro url : https://nearbymetro.azurewebsites.net/api/messages app id 3dfa0867-614d-40d2-8092-08fd56df09f6

Please let me know if you need more info

hardikchoudhary avatar Jun 20 '17 16:06 hardikchoudhary

@nwhitmont Bot name :NearByMetro Bot handle : NearByMetro url : https://nearbymetro.azurewebsites.net/api/messages app id 3dfa0867-614d-40d2-8092-08fd56df09f6

Please let me know if you need more info

hardikchoudhary avatar Jun 20 '17 16:06 hardikchoudhary

Your bot's endpoint is not online. When I visited your endpoint URL just now I got the error: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

nwhitmont avatar Jun 20 '17 16:06 nwhitmont

how my this url is online??? https://nearbymetro.azurewebsites.net/api/messages

but I am able to run https://nearbymetro.azurewebsites.net/

how bot endpoint is online please help me where I am wrong

I have just published my whole solution

to http://nearbymetro.azurewebsites.net/ from Visual studio

and in package.json starting path is app.js

hardikchoudhary avatar Jun 20 '17 16:06 hardikchoudhary

Please tell me for same ???? how this endpoint can be online ???? and you are looking for this url

but how possible ??

can i hardcode this url in code ???

as locally it is running

hardikchoudhary avatar Jun 20 '17 17:06 hardikchoudhary

@nwhitmont can you please help as i am stuck

do i need to change any of these lines

server.listen(process.env.port || process.env.PORT || 3978, function () { console.log('%s listening to %s', server.name, server.url);

});

hardikchoudhary avatar Jun 20 '17 17:06 hardikchoudhary

@hardikchoudhary Your bot URL currently returns 500 error, which means there is an error in your deployment.

For more information on deploying your bot to Azure, see: Deploy a bot to Azure from Visual Studio

Have you tried creating a bot via Azure Bot Service? When you use this method, all the deployment aspects are configured automatically, and there are built-in bot application templates to get you started.

nwhitmont avatar Jun 20 '17 19:06 nwhitmont

solved issue now its working thanks

alot sir

and now its working on skype as well as normal chat box

but it is not working on fb messenger and neither is showing error

hardikchoudhary avatar Jun 21 '17 17:06 hardikchoudhary