I have hosted a simple BOT Chat on my IIS server, with URL being http://localhost:3978. But when i access http://localhost/3978/api/messages. It throws error "HTTP Error 404.0 - Not Found". so when i am giving these as my end point in emulator , it s unable to connect and same message is displayed. Please anyone can help me on this
You can't conect because you need conect to http://localhost:3978/api/messages not http://localhost/3978/api/messages, if is failed and you are deploy in a IIS server, conect to http://localhost/api/messages
If you're hosting in IIS you want to enter either
http://localhost/api/messages OR http://localhost/YourIISAppName/api/messages in the bot emulator. You can only use http://localhost:3879/api/messages if your code is running in visual studio and is set to run on PORT 3879 (which you can change in the properties of your bot application in VS). Also, make sure IIS is configured to accept POST requests.
Related
I create a new Teams application in Visual Studio 2022 (17.4.4). When I try the "Prepare Teams App Dependencies", I get a failure from AppStudioPlugin with the message "API call to Developer Portal failed: Error, connect EACCES 52.113.194.132:443, API name: create-app, ..."
I am behind a proxy, and I see a drop in the firewall logs to 52.113.194.132:443, so it's not going to the proxy.
When I open a browser on that machine, I can go to the developer portal (https://dev.teams.microsoft.com/) without a problem, so the proxy does allow this.
When I open port 443 in the firewall, everything works.
My question is: How do I get it to work via the proxy ?
I did already try to add the proxy to the visual studio config, but also that did not make a difference.
17.4 VS Teams Toolkit uses a language server to handle data between VS and Teams Dev portal. You can try to add this language server to your proxy and test it.
Language server location: ~\appdata\local\microsoft\visualstudio\{VS_version}\extensions\Microsoft\teams toolkit\{Teams_toolkit_version}\server.exe
I have developed a bot on node.js as a teams app using the yo teams generator. The bot is hosted and deployed on an azure app service web app. The bot was working fine all the while, but started throwing http 500 internal server errors in the past couple of weeks.
I am not sure what has changed, but I am trying to fix this issue but not finding any leads and useful information from appInsights or the trace logs. All I see is the below exception being thrown in appInsights:
"POST to the bot's endpoint failed with HTTP status 500"
The bot works perfectly fine locally, when debugging through ngrok. Please let me know how I can fix this or where I can look for useful logs to help resolve this.
I was able to resolve this with MS on a support ticket. Looks like the fix is to update the configuration setting to reflect the latest version of node from 12.13 to 16.13.0 in the app service config section.
Chatbot is not open chat conversation window in emulator 4.11. It is working in local machine but same thing is not working from client network VM, getting below error. Ngrok is working on same vm also having admin right. Bot configuration is also fine.
The issue got resolved. VM outbound rules were blocking traffic and not able to connect bot authentication. Hence it is working fine.
Thanks
Upendra
I am developing a Bot application with the Azure Bot Framework and registered the bot on Azure and enabled direct line channel.
I have tested my application in Visual Studios (IIS Express) with Conveyor by keyoti and it works fine.
Now I need to try to run in a docker container, so I can't use conveyor so I tried a ngrok tunnel service, but when I try to run the application, I am getting an error
System.Net.Http.CurlException: Peer certificate cannot be authenticated with given CA certificates
The exception is raised on turnContext.SendActivityAsync.
NB: When I load fiddler on my machine, everything works fine, so I am not sure what the issue is.
Please let me know if there is any setting I need to do to get this working.
Any advice or help will be appreciated.?
How to resolve request to https://localhost:3978/api/messages failed, reason: net::ERR_SSL_PROTOCOL_ERROR in bot emulator?
net::ERR_SSL_PROTOCOL_ERROR in bot emulator
As I suggested in comment, to connect a bot running on local host, you can specify message endpoint in the emulator with http://localhost:3978/api/messages.
Besides, if you build your bot application using Bot Builder SDK for .NET in Visual Studio, to enable SSL and access site via https, you can set SSL Enabled option to True in project Properties window.
Test result: