"Error message: the server returns an error" during content view publish

I created an issue to check Katello content indexing: Bug #35457: Investigation: does Katello properly remove content units when they are removed from a Pulp repository during syncing? - Katello - Foreman