Hi,
Unable process the JSON request in POST method can any one help.
---
- hosts: windows
tasks:
- name: POST a body to an endpoint
win_uri:
method: post
password: xxxxxxxxxxxxxxxxxxxxx
force_basic_auth: yes
body: "{{ lookup('file','test.json') }}"
body_format: json
content_type: "application/json"
return_content: yes
Getting the following error:
fatal: [server_hostname]: FAILED! => {"base_response": { "CharcterSet": "ISO-8859-1", "ContentEncoding":
"Status_description" : "No Content",
"Method": "POST"
"msg": "status code of request '204' is not in list of valid status codes 204"
Can any one help ?