Skip to content

fix: dont report not found object as error when delete#1210

Merged
jenschude merged 1 commit intomasterfrom
fix_custom_object_deletion
Apr 3, 2025
Merged

fix: dont report not found object as error when delete#1210
jenschude merged 1 commit intomasterfrom
fix_custom_object_deletion

Conversation

@lojzatran
Copy link
Copy Markdown
Contributor

Summary

When we are attempting to delete custom objects and the server returns 404 Not Found, this shouldn‘t be considered as an error as it is already deleted.

Fixes: commercetools/commercetools-project-sync#619

@andihalberkamp
Copy link
Copy Markdown

lgtm :-)

} else {
if (exception instanceof NotFoundException) {
// if we try to delete and the custom object is already gone, then everything is
// fine
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove the while line here

@jenschude jenschude merged commit b587806 into master Apr 3, 2025
7 checks passed
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.

404 Not Found Error when Deleting CustomObject from UnresolvedReferencesService

3 participants