-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: mark scan as failed on fetch result errors and return 206 status
Updated error handling in `get_results` to mark scans as failed if errors occur during result fetch. Returning status code `206` (Partial Content) instead of `500` to indicate partial completion while preserving scan data integrity. This avoids marking the entire request as a server error, focusing on the partial availability of results. Updated OpenAPI spec to reflect `206` response for partial results in case of errors. Added `LambdaScannerBuilder` for testing error scenarios in fetch results.
- Loading branch information
1 parent
8e38d9e
commit 8488bc2
Showing
5 changed files
with
272 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.