yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
630 stars 186 forks source link

Linux 执行报错 #154

Closed andycheng-jiuluomall closed 2 years ago

andycheng-jiuluomall commented 2 years ago

Recurring job can't be scheduled, see inner exception for details

本地一切正常 linux 上就会报错

yuzd commented 2 years ago

有更详细的错误上下文吗

andycheng-jiuluomall commented 2 years ago

92026d631207cad3a8dd78ae476540d

andycheng-jiuluomall commented 2 years ago

4e5c788b4cb64ecab86e185547f23d5 2b3542641262edd01c22d79142d46b9 953dd776eb376e378c7141aedd895d9 现在怀疑是不是什么全局配置不对导致hangfirehttpjob 的DateTime.Now 这种的地方出问题了

andycheng-jiuluomall commented 2 years ago

4e9e7c5623985c167ba9af9f0d9134c

andycheng-jiuluomall commented 2 years ago

image 感觉还是这个全局的时间配置有问题 导致的 报错的最底层代码 也有传入一个时间

andycheng-jiuluomall commented 2 years ago

System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN"); 这行代码加了也不生效...

yuzd commented 2 years ago

你的这个应用的这个暴露的接口,你自己用postman测试下能调用 不报错吗

andycheng-jiuluomall commented 2 years ago

直接是get 请求 上面图片里有就有啊 在hangfire 里面 DateTime.Now.ToString() 就会有问题

yuzd commented 2 years ago

那这个可能是你的环境有关系把

yuzd commented 2 years ago

先关了,如果你还有别的线索怀疑是这这个组件有问题再重开