Thanks Racke for you help.

On Thursday, 21 May 2020 05:33:22 UTC-5, Stefan Hornburg (Racke) wrote:
>
> On 5/21/20 12:20 PM, Diyawary wrote: 
> > thanks Rack one more thing I have observed sometimes i am getting  belwo 
> connection failure and some time  Read 
> > operation timeout error. 
> > Status code was -1 and not [200]: Connection failure: connection was 
> closed before a valid response was received: ''" 
> > 
> > could you please suggest what the possible reason of this two errors.? 
> and in my ansible  script has no issue. 
>
> For the third and last time: most likely reason is the *API itself*. 
>
> Regards 
>          Racke 
>
> > 
> > On Thursday, 21 May 2020 04:44:49 UTC-5, Stefan Hornburg (Racke) wrote: 
> > 
> >     On 5/21/20 11:41 AM, Diyawary wrote: 
> >     > Hi Rack, 
> >     > 
> >     > As you suggested I have increased the timeout to 20 min but still 
> getting the same error and task stops before the 
> >     > timeout value. 
> >     > 
> > 
> >     So it is most likely that the API causes your problems. Please 
> investigate at that end. 
> > 
> >     Regards 
> >              Racke 
> > 
> >     > 
> >     > On Wednesday, 20 May 2020 10:08:16 UTC-5, Stefan Hornburg (Racke) 
> wrote: 
> >     > 
> >     >     On 5/20/20 3:52 PM, Diyawary wrote: 
> >     >     > 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 
> >     <
> https://test.service-now.com/api/eplc/table_update_integration/create> 
> >     >     <
> https://test.service-now.com/api/eplc/table_update_integration/create 
> >     <
> 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 
> >     <
> https://test.service-now.com/api/eplc/table_update_integration/create> 
> >     >     <
> https://test.service-now.com/api/eplc/table_update_integration/create 
> >     <
> 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'" 
> >     >     > } 
> >     >     > 
> >     > 
> >     >     I would increase the timeout to a ridiculous value like 20 
> minutes and test if it: 
> >     > 
> >     >     * succeeds 
> >     >     * stops before the timeout exceeded 
> >     >     * stops after the timeout exceeded 
> >     > 
> >     >     Regards 
> >     >              Racke 
> >     > 
> >     >     > 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 
> >     <
> https://test.service-now.com/api/eplc/table_update_integration/create> 
> >     >     <
> https://test.service-now.com/api/eplc/table_update_integration/create 
> >     <
> https://test.service-now.com/api/eplc/table_update_integration/create>> 
> >     >     >         <
> https://test.service-now.com/api/eplc/table_update_integration/create 
> >     <
> https://test.service-now.com/api/eplc/table_update_integration/create> 
> >     >     <
> https://test.service-now.com/api/eplc/table_update_integration/create 
> >     <
> 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] <javascript:> <javascript:> 
> >     <javascript:>>. 
> >     >     >         > 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>
>  
>
> >     >     <
> 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>>
>  
>
> >     >     >         
> >     <
> 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>
>  
>
> >     >     <
> 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>>>
>  
>
> >     >     >         > 
> >     >     >         
> >     >     
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer>
>  
>
> > 
> >     >     
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer>>
>  
>
> > 
> >     > 
> >     >     >         
> >     >     
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer>
>  
>
> > 
> >     >     
> >     <
> https://groups.google.com/d/msgid/ansible-project/eca3e85e-fbd2-4375-8a80-0649e4aa7103%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> 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] <javascript:> <mailto:
> [email protected] <javascript:> <javascript:> 
> >     <javascript:>>. 
> >     >     > To view this discussion on the web visit 
> >     >     > 
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com>
>  
>
> >     >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com>>
>  
>
> >     >     > 
> >     >     
> >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com?utm_medium=email&utm_source=footer>
>  
>
> > 
> >     >     
> >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/4944655c-f631-419e-a778-7980e4e3020e%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] <javascript:> <mailto:
> [email protected] <javascript:> 
> <javascript:>>. 
> >     > To view this discussion on the web visit 
> >     > 
> https://groups.google.com/d/msgid/ansible-project/d331da45-6315-4183-93b4-c40946e580c5%40googlegroups.com
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/d331da45-6315-4183-93b4-c40946e580c5%40googlegroups.com>
>  
>
> >     > 
> >     <
> https://groups.google.com/d/msgid/ansible-project/d331da45-6315-4183-93b4-c40946e580c5%40googlegroups.com?utm_medium=email&utm_source=footer
>  
> >     <
> https://groups.google.com/d/msgid/ansible-project/d331da45-6315-4183-93b4-c40946e580c5%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] <javascript:> <mailto:
> [email protected] <javascript:>>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/d1f54e1b-3304-44af-8ae2-7bdfb9e60851%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/ansible-project/d1f54e1b-3304-44af-8ae2-7bdfb9e60851%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/fdca7632-17ec-402d-89ff-ffa9b02139e0%40googlegroups.com.

Reply via email to