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

Catch JSON parse errors during scan #1661

Merged
merged 6 commits into from
Feb 25, 2025
Merged

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Feb 25, 2025

Description

Sometimes the response from APIs isn't valid JSON, which causes the scan process to end. This PR catches JSON errors and returns empty/null values accordingly.

Checklist

Please check all that apply.

  • I've tested the changes locally
  • I've updated the wiki accordingly
  • I've have updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes
  • All existing tests are passing

Copy link

github-actions bot commented Feb 25, 2025

Test Results

93 tests   93 ✅  28s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 7fafd45.

♻️ This comment has been updated with latest results.

@gantoine gantoine force-pushed the catch-metadata-errors-scan branch from 6d2cc1b to d37a016 Compare February 25, 2025 02:52
@gantoine gantoine merged commit 2cb87e6 into master Feb 25, 2025
8 checks passed
@gantoine gantoine deleted the catch-metadata-errors-scan branch February 25, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants