API call errors with "TypeError: no implicit conversion of nil into String"

Solution In Progress - Updated -

Issue

When making an API call that consist of multiple nested parameters in an array, incorrect structuring of the parameters can lead to a bad interpretation from the Satellite and make it seem like the Satellite is broke.

# curl -H 'Content-Type: application/json' -X PUT -sku admin:redhat https://satellite.example.com/api/hosts/7/subscriptions/content_override -d '{"content_label": "rhel-7-server-satellite-tools-6.9-rpms", "value": "true", "name": "enabled"}'
{"displayMessage":"Task 8b385725-3787-44f2-a98d-75a84a5413f3: TypeError: no implicit conversion of nil into String","errors":["Task 8b385725-3787-44f2-a98d-75a84a5413f3: TypeError: no implicit conversion of nil into String"]}

Environment

Red Hat Satellite 6.9

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