Unable to fetch updates due to error JSON object must be str, bytes or bytearray, not 'NoneType'
Issue
-
yum is failing with below error:
Updating Subscription Management repositories. Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/plugin.py", line 107, in _caller getattr(plugin, method)() File "/usr/lib/python3.6/site-packages/dnf-plugins/amazon-id.py", line 111, in config aws_region = json.loads(id_doc)['region'] File "/usr/lib64/python3.6/json/__init__.py", line 348, in loads 'not {!r}'.format(s.__class__.__name__)) TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType' - Unable to perform
yum updateon RHEL system built using AWS RHEL image.
Environment
- Red Hat Enterprise Linux (RHEL)
- Amazon Web Services (AWS)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.