SeriaWei / ZKEACMS

ZKEACMS build with .Net 8 (.Net CMS)可视化设计在线编辑内容管理系统
http://www.zkea.net/cms
GNU General Public License v3.0
2.82k stars 866 forks source link

更新索引异常 #499

Closed SeriaWei closed 1 year ago

SeriaWei commented 1 year ago
fail: Microsoft.Extensions.Hosting.Internal.Host[9]
      BackgroundService failed
      System.NullReferenceException: Object reference not set to an instance of an object.
         at ZKEACMS.HostOptionProvider.GetScheme() in /build/src/ZKEACMS/HostOptionProvider.cs:line 58
         at ZKEACMS.HostOptionProvider.GetOrigin() in /build/src/ZKEACMS/HostOptionProvider.cs:line 49
         at ZKEACMS.Search.Service.Crawler.Loadpage(WebPage page)
         at ZKEACMS.Search.Service.Crawler.CrawlPageAsync(String url)
         at ZKEACMS.Search.Service.CrawlBackgroundTask.ExecuteAsync(CancellationToken stoppingToken)
         at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
crit: Microsoft.Extensions.Hosting.Internal.Host[10]
      The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at ZKEACMS.HostOptionProvider.GetScheme() in /build/src/ZKEACMS/HostOptionProvider.cs:line 58
         at ZKEACMS.HostOptionProvider.GetOrigin() in /build/src/ZKEACMS/HostOptionProvider.cs:line 49
         at ZKEACMS.Search.Service.Crawler.Loadpage(WebPage page)
         at ZKEACMS.Search.Service.Crawler.CrawlPageAsync(String url)
         at ZKEACMS.Search.Service.CrawlBackgroundTask.ExecuteAsync(CancellationToken stoppingToken)
         at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)