检查错别字时发生异常:System.ArgumentNullException:值不能为null。

作者:动易软件 来源:本站原创 点击数: 发布时间:2021年02月04日

问题:后台日志报错如下

消息:检查错别字时发生异常:System.ArgumentNullException: 值不能为 null。
参数名: requestUriString
   在 System.Net.WebRequest.Create(String requestUriString)
   在 PowerEasy.Modules.Common.Business.JCJCCheckClient.Check(String content, String username, String biz_type, String mode, Boolean is_return_sentence, Boolean check_sensitive_word, Boolean is_not_allow_overlap, Boolean is_not_allow_in_quotation_check)
   在 PowerEasy.Modules.Common.Business.TyposChecker.CheckTypos(String content, Boolean reserveHtmlTag, Boolean isLocalInspection)
请求RawUrl:(null)

源文件:(null)
异常堆栈:   在 System.Net.WebRequest.Create(String requestUriString)
   在 PowerEasy.Modules.Common.Business.JCJCCheckClient.Check(String content, String username, String biz_type, String mode, Boolean is_return_sentence, Boolean check_sensitive_word, Boolean is_not_allow_overlap, Boolean is_not_allow_in_quotation_check)
   在 PowerEasy.Modules.Common.Business.TyposChecker.CheckTypos(String content, Boolean reserveHtmlTag, Boolean isLocalInspection)

分析:检查发现错别字检查开启了jcjc检查,但是检查接口跟用户名为空?内容发布检查已经打开了的,所以出现这个问题

解决办法:需要填写正确的账号密码