Why Am I Receiving 'Incorrect type. Expected pk value, received unicode' Error With 'uri' Module?

Solution Verified - Updated -

Issue

  • Receiving '"{\"credential\":[\"Incorrect type. Expected pk value, received unicode.\"],\"credentials\":[\"Incorrect type. Expected pk value, received unicode.\"]}"' When Posting A Request To Ansible Tower Using Ansible 'uri' Module.

Environment

  • Ansible Tower >= 3.3

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