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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In