Faraday::ConnectionFailed: Connection reset by peer

Problem:
Uploaded a Red Hat manifest, upon trying to enable a repository I get thee Connection Reset by peer error.
How to identify what is causing the error?

Expected outcome:
Able to enable the repository.
Able to understand the error and identify the cause.

Foreman and Proxy versions:
Foreman 3.3
Katello 4.5

Foreman and Proxy plugin versions:
Foreman 3.3
Katello 4.5

Distribution and version:
Red Hat 8.6

Other relevant data:
Actions::Katello::RepositorySet::EnableRepository
Faraday::ConnectionFailed: Connection reset by peer

just to add on, we are using a proxy server for public access