hangfire - Hangfire:不断返回 System.ArgumentNullException
问题描述
我的 API 正在尝试运行 hangfire 后台作业,但一直给我这个错误消息:
Hangfire.AutomaticRetryAttribute[0]
Failed to process the job '14525': an exception occurred. Retry attempt 7 of 10 will be performed in 00:22:40.
System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.IO.Path.Combine(String path1, String path2)
at Aftermarket.Server.Common.PqatExport.PQATExportHandler.TransferLogs(Boolean debugMode) in /src/Aftermarket.Server.Common/PQAT_Export/PQATExportHandler.cs:line 90
at Aftermarket.Server.Common.PqatExport.PQATExportHandler.DoTheExport() in /src/Aftermarket.Server.Common/PQAT_Export/PQATExportHandler.cs:line 60
现在第 60 行只是调用第 90 行所在方法的行,它看起来如下:
现在我检查了 Console.writle 以确保 _rooDir 不为空(它包含一个“/save/blob”字符串)我仍然得到这个 Null Argument 问题?这是为什么 ?
解决方案
推荐阅读
- angular - Primeng 4 数据表全局过滤器
- linux - 读取进程(游戏服务器)的控制台输出,并在出现“加入”一词时执行一些操作
- react-native - 反应本机实现堆栈导航错误
- scala - 如何连接两个数据集
在 Spark Scala 中,当一个键按顺序排列时没有爆炸 - local-storage - localstorage 中使用的变量未定义
- c# - 禁止开发人员在解决方案中使用对象
- c# - Web.Config - 特定文件的静态内容客户端缓存设置
- swift - 未定义属性列表的平等协议实现?
- c# - 如何在 Asp.net MVC Web 应用程序 C# 中上传文件时显示进度?
- r - 如何在 R 中生成交互式“画面风格”热图,其中两个因素作为轴标签