我把代码挂在腾讯云上,测试的时候签到做任务是正常的,但是添加了触发器自动运行的时候就会出这个告警
有没有懂代码的大佬,帮忙看看,有偿
日志:
[step 1]初始化,开始加载函数文件 index.sh
成功加载index.sh函数文件
=>完成
[step 2]初始化完成,开始发送ready信号
=>完成
[step 3]开始循环监听处理事件调用
START RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25
=>长轮询获取事件
=>监听到事件:{"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
=>调用函数,开始处理事件
进入main_handler
{"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
触发事件中的附加消息(任务编码)为:,
开始运行BiliBiliTool......
[01:00:03 INF] 【版本号】Ray.BiliBiliTool-v2.0.2
2021-06-17T01:00:03.3446688Z File target /var/user/Logs/log20210617.txt was locked, attempting to open next in sequence (attempt 1)
2021-06-17T01:00:03.3451504Z File target /var/user/Logs/log20210617_001.txt was locked, attempting to open next in sequence (attempt 2)
2021-06-17T01:00:03.3453233Z File target /var/user/Logs/log20210617_002.txt was locked, attempting to open next in sequence (attempt 3)
[01:00:04 INF] 【当前IP】42.194.202.130
[01:00:04 INF] 【开源地址】 github.com/RayWangQvQ/BiliBiliTool
[01:00:04 INF] 【目标任务】,
[01:00:04 INF] 【账号】1个
[01:00:04 INF] 账号 1 :
[01:00:04 WRN] 异常:System.Collections.Generic.KeyNotFoundException: The given key ',' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Ray.BiliBiliTool.Console.HostedServices.BiliBiliToolHostedService.DoTasks(String[] tasks) in /mnt/g/github/bilibilitool/src/Ray.BiliBiliTool.Console/HostedServices/BiliBiliToolHostedService.cs:line 90
at Ray.BiliBiliTool.Console.HostedServices.BiliBiliToolHostedService.StartAsync(CancellationToken cancellationToken) in /mnt/g/github/bilibilitool/src/Ray.BiliBiliTool.Console/HostedServices/BiliBiliToolHostedService.cs:line 52
[01:00:04 INF] 开始推送
[01:00:04 INF] 正在自动关闭应用...
函数结束
=>返回 {"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
=>推送函数处理结果
Response RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25 RetMsg:{"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
END RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25
Report RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25 Duration:1873ms Memory:128MB MemUsage:72.433594MB
有没有懂代码的大佬,帮忙看看,有偿
日志:
[step 1]初始化,开始加载函数文件 index.sh
成功加载index.sh函数文件
=>完成
[step 2]初始化完成,开始发送ready信号
=>完成
[step 3]开始循环监听处理事件调用
START RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25
=>长轮询获取事件
=>监听到事件:{"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
=>调用函数,开始处理事件
进入main_handler
{"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
触发事件中的附加消息(任务编码)为:,
开始运行BiliBiliTool......
[01:00:03 INF] 【版本号】Ray.BiliBiliTool-v2.0.2
2021-06-17T01:00:03.3446688Z File target /var/user/Logs/log20210617.txt was locked, attempting to open next in sequence (attempt 1)
2021-06-17T01:00:03.3451504Z File target /var/user/Logs/log20210617_001.txt was locked, attempting to open next in sequence (attempt 2)
2021-06-17T01:00:03.3453233Z File target /var/user/Logs/log20210617_002.txt was locked, attempting to open next in sequence (attempt 3)
[01:00:04 INF] 【当前IP】42.194.202.130
[01:00:04 INF] 【开源地址】 github.com/RayWangQvQ/BiliBiliTool
[01:00:04 INF] 【目标任务】,
[01:00:04 INF] 【账号】1个
[01:00:04 INF] 账号 1 :
[01:00:04 WRN] 异常:System.Collections.Generic.KeyNotFoundException: The given key ',' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Ray.BiliBiliTool.Console.HostedServices.BiliBiliToolHostedService.DoTasks(String[] tasks) in /mnt/g/github/bilibilitool/src/Ray.BiliBiliTool.Console/HostedServices/BiliBiliToolHostedService.cs:line 90
at Ray.BiliBiliTool.Console.HostedServices.BiliBiliToolHostedService.StartAsync(CancellationToken cancellationToken) in /mnt/g/github/bilibilitool/src/Ray.BiliBiliTool.Console/HostedServices/BiliBiliToolHostedService.cs:line 52
[01:00:04 INF] 开始推送
[01:00:04 INF] 正在自动关闭应用...
函数结束
=>返回 {"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
=>推送函数处理结果
Response RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25 RetMsg:{"Message":"","Time":"2021-06-17T01:00:00Z","TriggerName":"SCF-timer-1623718131","Type":"Timer"}
END RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25
Report RequestId:9e3ab069-d94a-4ab5-9b08-d629959c6c25 Duration:1873ms Memory:128MB MemUsage:72.433594MB












