Repository sync HTTP status code: 400

Problem:
Error message: the server returns an error
HTTP status code: 400
Response headers: {“date”=>“Tue, 14 Jun 2022 09:19:37 GMT”, “server”=>“gunicorn”, “content-type”=>“application/json”, “vary”=>“Accept,Cookie”, “allow”=>“GET, PUT, PATCH, DELETE, HEAD, OPTIONS”, “x-frame-options”=>“DENY”, “content-length”=>“62”, “x-content-type-options”=>“nosniff”, “referrer-policy”=>“same-origin”, “correlation-id”=>“b2fd2a05-b620-4ec5-8ac1-f0590126fd16”, “access-control-expose-headers”=>“Correlation-ID”, “via”=>“1.1SERVERNAME”, “connection”=>“close”}
Response body: {“publication”:[“Invalid hyperlink - Object does not exist.”]}
Expected outcome:
no errors
Foreman and Proxy versions:
foreman-3.2.1
Smart Proxy 3.2.0
Foreman and Proxy plugin versions:

foreman-tasks The goal of this plugin is to unify the way of showing task statuses across the Foreman instance. It defines Task model for keeping the information about the tasks and Lock for assigning the tasks to resources. The locking allows dealing with preventing multiple colliding tasks to be run on the same resource. It also optionally provides Dynflow infrastructure for using it for managing the tasks. Ivan Nečas 6.0.1
foreman_remote_execution A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality. Foreman Remote Execution team 6.0.0
foreman_virt_who_configure A plugin to make virt-who configuration easy Foreman virt-who-configure team 0.5.8
katello Katello adds Content and Subscription Management to Foreman. For this it relies on Candlepin and Pulp. N/A 4.4.0.2

Distribution and version:
OS - RHEL8 - Foreman 3.20
Other relevant data:
Error on client
Errors during downloading metadata for repository ‘DockerImages_MSSQL_RHEL8_MSSQL_RHEL8’:
#6 91.70 - Status code: 404
#6 91.70 Error: Failed to download metadata for repo ‘DockerImages_MSSQL_RHEL8_MSSQL_RHEL8’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

few days ago the same error with other repository:

"Failed to download metadata for repo ‘rhel-8-for-x86_64-baseos-rpms’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

the problem was fixes here with building and promoting the new content view version, but now it breaks
on 90% when promoting

Could you provide the URL for that repository?

MSSQL:
https://packages.microsoft.com/rhel/8/prod/

“DockerImages” is in our case the Organisation name, just for Info

It looks like this was updated late last night, and I can sync it fine currently. If you try again, does it work?

Hi
I found another workaround for it, product->check the repository->action->advanced sync-> complete sync, that solved the problem for 5 repositories which didn’t work.