Umbraco 8开发服务器调用API报500错误,本地正常求助
Umbraco部署后API 500错误及站点持续重载问题求助
问题描述
我开发了一个从Umbraco获取数据的应用,本地环境运行完全正常,但部署到开发服务器后,出现两个异常情况:
- 调用API时返回500错误
- 网站持续自动重载
同事推测故障出在应用的管理模块,可能是因为我仅验证登录用户为会员,未校验其是否为后台用户。
错误信息
在App_Data/logs文件夹的Umbraco跟踪日志中,频繁出现以下错误日志:
{"@t":"2022-10-10T11:54:07.7434113Z","@mt":"Keep alive failed (at '{keepAlivePingUrl}').","@l":"Error","@x":"System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond \"hid the servers Ip-adress\"\r\n at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)\r\n at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)\r\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)\r\n --- End of inner exception stack trace ---\r\n at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)\r\n --- End of inner exception stack trace ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Umbraco.Web.Scheduling.KeepAlive.d__5.MoveNext() in D:\\a\\1\\s\\src\\Umbraco.Web\\Scheduling\\KeepAlive.cs:line 69","keepAlivePingUrl":"http://hidIpAdress/Web/umbraco/api/keepalive/ping","SourceContext":"Umbraco.Web.Scheduling.KeepAlive","ProcessId":2032,"ProcessName":"w3wp","ThreadId":29,"AppDomainId":5,"AppDomainAppId":"LMW3SVC1ROOTWeb","MachineName":"name of the server","Log4NetLevel":"ERROR"}
另外我已截取两张错误场景的截图。
求助
有没有人遇到过类似的问题?或者能提供一些排查方向的建议?
内容的提问来源于stack exchange,提问作者Stefan Fernström
相关产品推荐
相关产品推荐

