<?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: Meraki API timeout after 120 seconds in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399159#M303</link>
    <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/117995"&gt;@nlochala&lt;/A&gt; which API operation(s) did you use that evidenced this issue? &lt;/P&gt;&lt;P&gt;The getNetworkDevices operation mentioned above &lt;A href="https://developer.cisco.com/meraki/api-v1/deprecation/" target="_blank" rel="nofollow noopener noreferrer"&gt;is deprecated&lt;/A&gt;, so I'm interested if this is happening with any operations that aren't deprecated.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 17:00:28 GMT</pubDate>
    <dc:creator>John-on-API</dc:creator>
    <dc:date>2024-12-02T17:00:28Z</dc:date>
    <item>
      <title>Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399150#M294</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have been experimenting lots of timeouts with api.meraki.com recently. &lt;/P&gt;&lt;P&gt;I have tried with both my personal PC on my home network AND from my work PC from corporate network.&lt;/P&gt;&lt;P&gt;I was able to take a pcap of what is happening :&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaphaelL_0-1633114134564.png" style="width: 949px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262529i04D33F7BDE4D7D0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On packet 6448 Meraki ACK my api call but then 120 seconds later Meraki tears the connection due to inactivity... but I was waiting on them to retrieve me the info... &lt;/P&gt;&lt;P&gt;Python requests module returns : requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))&lt;/P&gt;&lt;P&gt;The API call made seems to always be : '{0}/networks/{1}/devices'.format(str(base_url_v1), str(networkID)). It's never the same network but they are in the same Org ( Org isnt specified here )&lt;/P&gt;&lt;P&gt;I'm not using the SDK , I'm using a simple function with requests. &lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;def getNetworkDevice(apikey, networkID):
    geturl = '{0}/networks/{1}/devices'.format(str(base_url_v1), str(networkID))
    dashboard = requests.get(geturl, headers=headers,timeout=600)
    result = __returnhandler(dashboard.status_code, dashboard.text)
    return result&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Has anyone ever seen those kind of issue ? I'm about to open a ticket. I know I could simply use a smaller timeout than Meraki and retry until I get a response , but this is only a temp fix. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 18:55:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399150#M294</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2021-10-01T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399151#M295</link>
      <description>&lt;P&gt;I don't think I am understanding correctly.&lt;/P&gt;&lt;P&gt;There is no way that a call to "{0}/networks/{1}/devices" would take 2 minutes to respond.  I haven't used the REST API in a long term (I mostly used the Python SDK), and I never get timeouts.  Never.&lt;/P&gt;&lt;P&gt;Is the issue that you make the API call successfully, and then sometime later you are getting this exception?&lt;/P&gt;&lt;P&gt;Have you tried the sample code that the developer website creates?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-network-devices" target="_self" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-network-devices&lt;/A&gt; &lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import requests

url = "https://api.meraki.com/api/v1/networks/{networkId}/devices"

payload = None

headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "X-Cisco-Meraki-API-Key": "xxx"
}

response = requests.request('GET', url, headers=headers, data = payload)

print(response.text.encode('utf8'))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_0-1633125113641.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262534i98279CE9E5604247/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 21:52:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399151#M295</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2021-10-01T21:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399152#M296</link>
      <description>&lt;P&gt;I know it doesn't make sense that the query would take 2 minutes to respond but the pcap is not lying. Meraki acknoledges the API Call but never returns anything then after 120 seconds closes the session.&lt;/P&gt;&lt;P&gt;I have used lots and lots of differents calls but it seems to be only affecting this one.&lt;/P&gt;&lt;P&gt;Sometimes it will time out after 60 networks , sometimes more. But I can reproduce the issue all the time.&lt;/P&gt;&lt;P&gt;My code is very similar to the snippet on the developer website.&lt;/P&gt;&lt;P&gt;I have retried the same network and got it to work : &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaphaelL_0-1633126548026.png" style="width: 777px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262530i7D3BE6B19104D9AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;350 - Meraki ACK the API request&lt;/P&gt;&lt;P&gt;370 - Sends the Data back&lt;/P&gt;&lt;P&gt;371,375,376 TCP Session ending. Client caused the session ending.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 22:17:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399152#M296</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2021-10-01T22:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399153#M297</link>
      <description>&lt;P&gt;Have you got an org on another shard you can test with?&lt;/P&gt;&lt;P&gt;Maybe that one shard has an issue.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 22:28:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399153#M297</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2021-10-01T22:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399154#M298</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/13291"&gt;@Raphletourn&lt;/A&gt; there is a known issue with Meraki Development/Engineering with api.meraki.com I have had a case open since July for the same timeout behaviour, their recommended workaround for the moment is to use the node/shard FQDN for that customer / Org i.e n&amp;lt;123&amp;gt;.meraki.com we have coded this into all out apps and not had any performance challenges.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ali &lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:06:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399154#M298</guid>
      <dc:creator>Alisdair Mckeand</dc:creator>
      <dc:date>2021-10-02T21:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399155#M299</link>
      <description>&lt;P&gt;Ohhhh !  &lt;/P&gt;&lt;P&gt;I will try this right away&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:08:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399155#M299</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2021-10-02T21:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399156#M300</link>
      <description>&lt;P&gt;Using the shard URL instead of using "api.meraki.com" solves the issue ! &lt;/P&gt;&lt;P&gt;I will open a ticket and assign a priority on it.&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 12:16:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399156#M300</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2021-10-04T12:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399157#M301</link>
      <description>&lt;P&gt;No problem at all, happy to help, yes makes sense to raise a case too&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 22:30:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399157#M301</guid>
      <dc:creator>Alisdair Mckeand</dc:creator>
      <dc:date>2021-10-04T22:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399158#M302</link>
      <description>&lt;P&gt;Two years later, I'm still facing the same issue when using the `api.meraki.com` end point. However, as stated above, using the `n&amp;lt;org_id&amp;gt;.meraki.com` fixed my issue. &lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 08:11:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399158#M302</guid>
      <dc:creator>nlochala</dc:creator>
      <dc:date>2024-11-29T08:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API timeout after 120 seconds</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399159#M303</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/117995"&gt;@nlochala&lt;/A&gt; which API operation(s) did you use that evidenced this issue? &lt;/P&gt;&lt;P&gt;The getNetworkDevices operation mentioned above &lt;A href="https://developer.cisco.com/meraki/api-v1/deprecation/" target="_blank" rel="nofollow noopener noreferrer"&gt;is deprecated&lt;/A&gt;, so I'm interested if this is happening with any operations that aren't deprecated.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 17:00:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-timeout-after-120-seconds/m-p/5399159#M303</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2024-12-02T17:00:28Z</dc:date>
    </item>
  </channel>
</rss>

