Skip to content

Conversation

@lojzatran
Copy link
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

lgtm :-)

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

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

4 participants