Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

キューに予期しないデータが入っている場合、エンドポイントURLのパースもエラーログの作成も失敗する問題を修正 #168

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

u1-liquid
Copy link
Member

What

エラーログを作ってる途中でjob.dataundefinedというエラーになってるので、dataの中身を全部JSON.stringifyするようにした

Why

#164 で、単純にエンドポイントURLのパースに失敗した場合の対応はできたけど
job.dataが丸ごとundefinedだったり期待通りのプロパティが存在しなかったりする場合はまだこける

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
100.0% 100.0% Duplication

@u1-liquid u1-liquid merged commit 760fe8c into MisskeyIO:io Sep 19, 2023
16 checks passed
@u1-liquid u1-liquid deleted the error-when-job-data-undefined branch September 19, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants