Closed zaite closed 4 months ago
日志如下
{"module":"main","level_name":"DEBUG","level":8,"context":{},"message":"Start processing \"sms:verify_code:send\"","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"DEBUG","level":8,"context":{},"message":"send sms to 13454310***, verify code 987891","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"ERROR","level":4,"context":{"@":{},"#file":"G:/dev_root/aidea-server/internal/queue/sms.go","#line":64,"#package":"github.com/mylxsw/aidea-server/internal/queue"},"message":"panic: runtime error: invalid memory address or nil pointer dereference","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"WARNING","level":5,"context":{},"message":"task process failed: \"sms:verify_code:send\", runtime error: invalid memory address or nil pointer dereference","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"WARNING","level":5,"context":{},"message":"[queue] Retry exhausted for task id=88e97a8a-7d6a-47f9-a422-13a052e9cf84","datetime":"2024-07-10T06:58:54+08:00"}
redis记录
问题解决
是什么问题?
日志如下
{"module":"main","level_name":"DEBUG","level":8,"context":{},"message":"Start processing \"sms:verify_code:send\"","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"DEBUG","level":8,"context":{},"message":"send sms to 13454310***, verify code 987891","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"ERROR","level":4,"context":{"@":{},"#file":"G:/dev_root/aidea-server/internal/queue/sms.go","#line":64,"#package":"github.com/mylxsw/aidea-server/internal/queue"},"message":"panic: runtime error: invalid memory address or nil pointer dereference","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"WARNING","level":5,"context":{},"message":"task process failed: \"sms:verify_code:send\", runtime error: invalid memory address or nil pointer dereference","datetime":"2024-07-10T06:58:54+08:00"} {"module":"main","level_name":"WARNING","level":5,"context":{},"message":"[queue] Retry exhausted for task id=88e97a8a-7d6a-47f9-a422-13a052e9cf84","datetime":"2024-07-10T06:58:54+08:00"}
redis记录