Reset By Peer - Service Fabric Web API Hosted in Azure - asp.net-web-api

I am working on a Service Fabric Web API Project hosted in Azure,and this API is used by our client iOS and Android applications,sometimes we are getting Reset by Peer error(This is what we can see in HTTPScoop) and we wont get the response from API,we didn't find any issues from the service side.as a work around for this we just rebuild and deploy the solution whenever it occurs. Is anyway we can handle this in WebAPI?
Thanks for your help

Related

Bot Framework Emulator works but Web Chat not does not

I have a bot, built using the Bot Framework V4 in Java with Spring Boot, that is hosted on an Azure Web App and using the Azure Bot Service.
When connecting with the Bot Framework Emulator using ngrok it works just fine but when I try to use the Web Chat channel in the bot service I get this error
There was an error sending this message to your bot: HTTP status code Unauthorized
When trying to open it in Teams using the Teams channel it also doesn't work.
I have left the MicrosoftAppId and MicrosoftAppPassword empty and have my messaging endpoint set as https://<name>.azurewebsites.net/api/messages.
Is there any way I can use web chat?
When testing with a locally running bot (with using local url), you don't need to specify MicrosoftAppId/MicrosoftAppPassword within Emulator. But when the bot is deployed to Azure (OR testing when running locally but through with ngrok), you need to configure them in either the Web App configuration or in the application.properties file.

HTTP 500 Internal Server Error - Azure Bot Serivice

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.

Publishing and debugging Microsoft Bot Service

I have developed a bot that works perfectly on my local machine and accessible through all channels via ngrok.
However, the Bot doesn’t work on its deployed Azure url which is https://mybot.azurewebsites.com/api/messages A test with the webchat or bot emulator returns an error 500 without further information on exact cause of the issue. How would I debug so that I can find out more information on what's causing the breakdown?

Can't make a POST request to REST API

GET, PUT, DELETE request work fine, but everytime i make a POST request I get an 500 status code. I have no idea where to start debuggin or what to look for. My api is depolyed on Microsoft Azure.
Any tips on what to look for or how to solve this issue would be much appriciated. I know a 500 status code, could be pretty much anything, but i find it really wierd that POST is the only request that dosn't work.
I have no idea where to start debuggin or what to look for. My api is depolyed on Microsoft Azure.
Please make sure your API application could run fine locally before you deploy it to Azure. Besides, http 500 error indicates the server encountered an unexpected condition, if you deploy your app to Azure app service, you could remote debugging web apps to troubleshoot the issue. If you publish it as cloud service Web role, you could try to use Azure compute emulator to debug your cloud service on a local machine.

Debugging Azure Mobile Service Authentication

I'm new to azure mobile services development and any help will be greatly appreciated.
I have created sample mobile service application and could successfully launch and debug it locally. As a next step I've added google authentication. Everything works fine when the service is Published and running in the cloud. But, I could not make the service to run locally so that I can debug the service for cases when the user is authenticated.
So for I have wrestled with IIS Express and made it work with HTTPS on port 44300. But Google authentication services complained because of redirect URLs mismatch, even though I've added https://localhost:44300/signin-google to redirect list.
I feel like I'm not doing something correct here. Something does not make me believe that debugging locally is not possible.
Thanks,
Ruben
Is possible to debug in localhost, but the google/facebook/Microsoft authentication should not be tested, because it is provided out-of-the-box by Azure Mobile Service team.
you should configure it in Azure Portal and then you should implement it in your application like documentation provides.
The following resources has the references to the Authentication articles:
Azure Mobile Services for Client Apps

Resources