<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RESTCONF Timeout in Tools</title>
    <link>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783553#M909</link>
    <description>&lt;P&gt;yes!&lt;/P&gt;&lt;P&gt;so in the&amp;nbsp;&lt;SPAN&gt;xml_payload, I have configurations encoded in XML and imagine it is huge. when I send the&amp;nbsp;requests.patch I got error 504 which is for the time out. However, the router would be configured after the error .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I guess the timeout should be increased but the timeout inside the&amp;nbsp;requests.patch, I feel is not working?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I clear enough?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 22:36:22 GMT</pubDate>
    <dc:creator>abduljwad.higaig</dc:creator>
    <dc:date>2023-02-27T22:36:22Z</dc:date>
    <item>
      <title>RESTCONF Timeout</title>
      <link>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783447#M907</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;I hope you all doing well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working with RESTCONF but i could not edit the timeout, is there any way?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is my code, i set the timeout to 300, but i still get error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;def configure_device(xml_payload,**dev_inf):&lt;BR /&gt;response = requests.patch(&lt;BR /&gt;url = dev_inf["host"] ,&lt;BR /&gt;auth = (dev_inf["username"],dev_inf["password"]),&lt;BR /&gt;headers = dev_inf["headers"],&lt;BR /&gt;data = xml_payload ,&lt;BR /&gt;verify = False , timeout = 300 )&lt;BR /&gt;if response.status_code == 204:&lt;BR /&gt;print(" configuration successful",dev_inf["name"])&lt;BR /&gt;else:&lt;BR /&gt;print("Error configuring : " + str(response.status_code) + " " + response.text)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 20:00:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783447#M907</guid>
      <dc:creator>abduljwad.higaig</dc:creator>
      <dc:date>2023-02-27T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Timeout</title>
      <link>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783510#M908</link>
      <description>&lt;P&gt;Can you please provide more detail ?&lt;/P&gt;
&lt;P&gt;What is time out for and what kind of&amp;nbsp; error you got ?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 21:21:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783510#M908</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2023-02-27T21:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Timeout</title>
      <link>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783553#M909</link>
      <description>&lt;P&gt;yes!&lt;/P&gt;&lt;P&gt;so in the&amp;nbsp;&lt;SPAN&gt;xml_payload, I have configurations encoded in XML and imagine it is huge. when I send the&amp;nbsp;requests.patch I got error 504 which is for the time out. However, the router would be configured after the error .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I guess the timeout should be increased but the timeout inside the&amp;nbsp;requests.patch, I feel is not working?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I clear enough?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 22:36:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783553#M909</guid>
      <dc:creator>abduljwad.higaig</dc:creator>
      <dc:date>2023-02-27T22:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Timeout</title>
      <link>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783615#M910</link>
      <description>&lt;P&gt;Thanks, I understand you issue now. It's 504, I doubt that we can "ask" more time from client side.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 23:53:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783615#M910</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2023-02-27T23:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Timeout</title>
      <link>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783717#M911</link>
      <description>&lt;P&gt;Not sure if this is working, but try to increase the life value on the router:&lt;/P&gt;
&lt;PRE class="pre codeblock"&gt;&lt;CODE&gt;ip http timeout-policy idle 180 life 1200 requests 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-28 at 07.23.44.png" style="width: 935px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/177718i2AA1CD0239422E57/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-28 at 07.23.44.png" alt="Screenshot 2023-02-28 at 07.23.44.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 06:24:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/restconf-timeout/m-p/4783717#M911</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-02-28T06:24:35Z</dc:date>
    </item>
  </channel>
</rss>

