[RHUI 4] Yum or DNF commands fails with error 'Cannot prepare internal mirrorlist: Status code: 400'

Solution Verified - Updated -

Issue

  • On the clients connected to RHUI, yum and dnf commands fails with the below error:

    dnf.exceptions.RepoError: Failed to download metadata for repo 'rhui-rhel-8-for-x86_64-appstream-rhui-rpms': Cannot prepare internal mirrorlist: Status code: 400 for https://rhui.example.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/appstream/os (IP: xxx.xx.xx.xx)
    

Environment

  • Red Hat Update Infrastructure 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content