subscription-manager fails with error "'NoneType' object has no attribute '__getitem__'"

Solution 1:

I solved it in my case with:

sudo subscription-manager clean

then registering again

RHEL 7.9