BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

[Code Example] intelligence-ImageCaption: {"code":"ResourceNotFound","message":"/ does not exist"}

Open jayinai opened this issue 9 years ago • 4 comments

So I tried the example, ImageCaption, and deployed to Azure (by clicking the blue button).

However after the deployment I got the following error when I visit the url:

{"code":"ResourceNotFound","message":"/ does not exist"}

Any help would be appreciated.

jayinai avatar Dec 29 '16 19:12 jayinai

The bot runs on the /api/messages endpoint. E.g.: https://[YOURAZUREBOTAPP].azurewebsites.net/api/messages

You need to edit the bot registration and update the message endpoint. (Remember to set the Microsoft App Id and Microsoft App Password when deploying the bot)

Once the bot is configured and deployed, you can try the webchat from the Bot registration page.

NOTE: The sample code does not contain or host any webpages, it just a REST API with a single endpoint

pcostantini avatar Mar 02 '17 22:03 pcostantini

relates to: https://github.com/Microsoft/BotBuilder-Samples/tree/master/Node/intelligence-ImageCaption

nwhitmont avatar Jul 05 '17 17:07 nwhitmont

Even, I get the same issue. How do I access the Bot I have built over the browser and give URL to someone to test. Everytime , I need to login in azure and see it in Web chat

I get the below error when accessed through the browser

https://{mydomain}.azurewebsites.net/ . {"code":"ResourceNotFound","message":"/ does not exist"}

https://{mydomain}.azurewebsites.net/webchat?s={direct_line_secret_key} {"code":"ResourceNotFound","message":"/webchat does not exist"}

nikhilabhiman avatar Jan 01 '18 19:01 nikhilabhiman

@nikhilabhiman - You can test your deployed bot using 1) the Bot Framework Emulator, or 2) a WebChat hosted on your server. There is no publicly accessible WebChat unless you configure it in your bot server's code.

For more information on Emulator, check out: https://github.com/Microsoft/BotFramework-Emulator

If you are still having problems, please open a new issue here: https://github.com/microsoft/botbuilder/issues/new

nwhitmont avatar Jan 01 '18 22:01 nwhitmont