Azure函数为我的一些客户抛出“发送请求时发生错误”

时间:2019-06-25 00:17:44

标签: c# azure-functions

所有Azure功能在“ MySoftware 2.0.14”中均可正常运行。我必须重新部署所有Azure功能,并更改软件中的地址,然后发布新版本“ MySoftware 2.0.18”。一切正常,但是大约3-10%的客户停止使用所有功能。

我与许多这样的人进行了TeamViewer会话,这些功能的行为就像它们根本不存在一样。就像我将函数地址更改为一些随机字符串时一样。在两种情况下均抛出“发送请求时发生错误”。

这些家伙的完全例外:

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at (TaskAwaiter`1& )
   at InstaGTO.Model.ServerCommunication.ServerRequest.♶┩♼﵆⚝┚⚶╇╽♅⚢▚♋﷜⛴﷖╬♽⛣⚒⚧﷈⛍▄￱☽▄┢﷪┒▷◔┪╨⚿﷟♻䷪♩☈☯╃䷃╓⚨⚾♠◪▒☦☔┻╩﷾⛿﵏┅╰䷚▊┸◞䷠￸⛂◑♑┾╲◟⚇♞╇┈﯃◢﷚╳│⛖☃☲┼◩▼◢﵅◨█┕﷮╄⚞┨◤◊⛣┦.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at (TaskAwaiter`1& )
   at InstaGTO.ViewModel.RegistrationViewModel.◮☶╞☿﷧┿䷯⚥╻╋﮻♭┣▣╖⚇☢﯀☼￳☝♐﯃⛔⚇﷎☗⛤☣﵂䷤䷦◥╱▩⛃╷⚒﷑▉⚫▇⚓⚺◻▒♓╥䷹║♀●═╺䷚䷵䷲﯈䷾﷬┞☍♶⛎﷡◜▚♥◕♒┉☬▌▀⚻䷜☸◿▫﷚◶⚀├▹⛼╢┤⛤╄⚚♔⛲◱♬╲★￴◷┸.MoveNext()

我没有对代码中的函数进行任何更改。我只是将它们部署在新的Azure计划上,并更改软件中的地址。我真的不明白为什么它对某人无效。这些见解没有发现任何错误,但是我的软件对那些家伙不起作用,因为他们无法注册,无法请求新密码,注册以及云上的所有内容。

1 个答案:

答案 0 :(得分:3)

如Hari所建议,遵循https://github.com/Azure/azure-functions-host/issues/3665并且SSL更改为1.0确实解决了该问题。