Please find the complete tasks out put-
{
"status": -1,
"_ansible_no_log": false,
"url":
"https://test.service-now.com/api/eplc/table_update_integration/create",
"changed": false,
"elapsed": 10,
"content": "",
"invocation": {
"module_args": {
"directory_mode": null,
"force": false,
"remote_src": null,
"status_code": [
"200"
],
"follow": false,
"owner": null,
"body_format": "json",
"client_key": null,
"group": null,
"use_proxy": true,
"unix_socket": null,
"unsafe_writes": null,
"serole": null,
"content": null,
"setype": null,
"follow_redirects": "safe",
"return_content": false,
"method": "POST",
"body": {
"Region": "NA - Prod",
"List": [
data
},
"url_username": "****",
"src": null,
"dest": null,
"selevel": null,
"force_basic_auth": true,
"removes": null,
"http_agent": "ansible-httpget",
"user": "",
"regexp": null,
"password": "***",
"url_password": "***",
"url":
"https://test.service-now.com/api/eplc/table_update_integration/create",
"backup": null,
"seuser": null,
"client_cert": null,
"creates": null,
"headers": {
"Content-Type": "application/json"
},
"delimiter": null,
"mode": null,
"timeout": 100,
"attributes": null,
"validate_certs": true
}
},
"redirected": false,
"msg": "Status code was -1 and not [200]: 'The read operation timed
out'"
}
On Wednesday, 20 May 2020 08:43:46 UTC-5, Diyawary wrote:
>
> Hi Racke,
>
> I have already increase the timeout but still getting the same error.
> "Status code was -1 and not [200]: 'The read operation timed out'"
>
> On Wednesday, 20 May 2020 07:35:52 UTC-5, Stefan Hornburg (Racke) wrote:
>>
>> On 5/20/20 9:57 AM, Diyawary wrote:
>> > Hi Team,
>> >
>> > I am sending data from ansible to service now using uri, data is
>> passing to snow table but job status is not showing
>> > successful.
>> > I am getting "The read operation timed out" error ,Please suggest me
>> how this can be resolved
>> > - name: Passing Data to Snow
>> > uri:
>> > url: "
>> https://test.service-now.com/api/eplc/table_update_integration/create"
>> > method: POST
>> > Headers: "application/json"
>> > body: '{"List":{{EPG_all}}, "Region":"NA " }'
>> > body_format: json
>> > user: "{{ snow_username }}"
>> > password: "{{ snow_password }}"
>> > force_basic_auth: yes
>> > status_code: 200
>> > timeout: 10
>> >
>>
>> It certainly doesn't help that you reduce the timeout to 10 seconds. Also
>> please post complete error message (without
>> the credentials).
>>
>> Regards
>> Racke
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Ansible Project" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an email to
>> > [email protected] <mailto:
>> [email protected]>.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com
>>
>> > <
>> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
>>
>>
>>
>> --
>> Ecommerce and Linux consulting + Perl and web application programming.
>> Debian and Sympa administration. Provisioning with Ansible.
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com.