fix(shiro/ps): prevent ps update from crashing when process payload m… #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
本 PR 修复了下述问题并在个人生产环境使用暂未发现引入其他问题。
问题描述
访问 Shiroi 时,博主正在进行的动态信息(此前上报的动态)未被展示,直到 ProcessReporter 上报新动态后才会显示。
复现环境
复现方式
此时查看网络日志:
Request URL: https://example.com/api/v2/fn/ps/update Request Method: POST Status Code: 500 Internal Server Error ... Response Body: { "ok": 0, "code": 80000, "message": "Function 执行报错: Cannot read properties of undefined (reading 'process')" }此时查看 docker mx-server 日志:
切换前台 process,保证 ProcessReporter 上报成功
再次查看 Shiroi 前端,发现头像右侧 activity 区正常改变