<?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 dashboard.wireless.getOrganizationWirelessDevicesEthernetStatuses total_pages='all' PAGNATION_ISSUE in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dashboard-wireless/m-p/5433135#M5355</link>
    <description>&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;Initially I tried to perform this using the python request module and experienced an issue while trying to work through the response.links (for next page) so I spun up a python venv to test this on the python meraki sdk and experienced similar results.&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;meraki&lt;BR /&gt;dashboard = meraki.DashboardAPI(YOUR_merakiApiKey)&lt;BR /&gt;response = dashboard.wireless.getOrganizationWirelessDevicesEthernetStatuses(YOUR_merakiOrgID&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;total_pages&lt;/SPAN&gt;=&lt;SPAN&gt;'all'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(response)&lt;/PRE&gt;&lt;P&gt;It just continues to run but the url for the next page never changes.&lt;/P&gt;&lt;P&gt;aka: "startingAfter"&lt;/P&gt;&lt;P&gt;terminal logs:&lt;/P&gt;&lt;P&gt;2023-03-21 16:26:46 meraki: INFO &amp;gt; GET &lt;A href="https://api.meraki.com/api/v1/organizations/:" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/organizations/XX&lt;/A&gt;/wireless/devices/ethernet/statuses&lt;BR /&gt;2023-03-21 16:26:46 meraki: INFO &amp;gt; wireless, getOrganizationWirelessDevicesEthernetStatuses; page 1 - 200 OK&lt;BR /&gt;2023-03-21 16:26:46 meraki: INFO &amp;gt; GET &lt;A href="https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=" target="_blank" rel="noopener nofollow noreferrer"&gt;https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=&lt;/A&gt;&lt;STRONG&gt;13803415844340&lt;/STRONG&gt;&lt;BR /&gt;2023-03-21 16:26:47 meraki: INFO &amp;gt; wireless, getOrganizationWirelessDevicesEthernetStatuses; page 2 - 200 OK&lt;BR /&gt;2023-03-21 16:26:47 meraki: INFO &amp;gt; GET &lt;A href="https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=" target="_blank" rel="noopener nofollow noreferrer"&gt;https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=&lt;/A&gt;&lt;STRONG&gt;13803415844340&lt;/STRONG&gt;&lt;BR /&gt;2023-03-21 16:26:47 meraki: INFO &amp;gt; wireless, getOrganizationWirelessDevicesEthernetStatuses; page 3 - 200 OK&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 20:40:28 GMT</pubDate>
    <dc:creator>@mforman2</dc:creator>
    <dc:date>2023-03-21T20:40:28Z</dc:date>
    <item>
      <title>dashboard.wireless.getOrganizationWirelessDevicesEthernetStatuses total_pages='all' PAGNATION_ISSUE</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-wireless/m-p/5433135#M5355</link>
      <description>&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;Initially I tried to perform this using the python request module and experienced an issue while trying to work through the response.links (for next page) so I spun up a python venv to test this on the python meraki sdk and experienced similar results.&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;meraki&lt;BR /&gt;dashboard = meraki.DashboardAPI(YOUR_merakiApiKey)&lt;BR /&gt;response = dashboard.wireless.getOrganizationWirelessDevicesEthernetStatuses(YOUR_merakiOrgID&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;total_pages&lt;/SPAN&gt;=&lt;SPAN&gt;'all'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(response)&lt;/PRE&gt;&lt;P&gt;It just continues to run but the url for the next page never changes.&lt;/P&gt;&lt;P&gt;aka: "startingAfter"&lt;/P&gt;&lt;P&gt;terminal logs:&lt;/P&gt;&lt;P&gt;2023-03-21 16:26:46 meraki: INFO &amp;gt; GET &lt;A href="https://api.meraki.com/api/v1/organizations/:" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/organizations/XX&lt;/A&gt;/wireless/devices/ethernet/statuses&lt;BR /&gt;2023-03-21 16:26:46 meraki: INFO &amp;gt; wireless, getOrganizationWirelessDevicesEthernetStatuses; page 1 - 200 OK&lt;BR /&gt;2023-03-21 16:26:46 meraki: INFO &amp;gt; GET &lt;A href="https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=" target="_blank" rel="noopener nofollow noreferrer"&gt;https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=&lt;/A&gt;&lt;STRONG&gt;13803415844340&lt;/STRONG&gt;&lt;BR /&gt;2023-03-21 16:26:47 meraki: INFO &amp;gt; wireless, getOrganizationWirelessDevicesEthernetStatuses; page 2 - 200 OK&lt;BR /&gt;2023-03-21 16:26:47 meraki: INFO &amp;gt; GET &lt;A href="https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=" target="_blank" rel="noopener nofollow noreferrer"&gt;https://n545.meraki.com/api/v1/organizations/XX/wireless/devices/ethernet/statuses?perPage=100&amp;amp;startingAfter=&lt;/A&gt;&lt;STRONG&gt;13803415844340&lt;/STRONG&gt;&lt;BR /&gt;2023-03-21 16:26:47 meraki: INFO &amp;gt; wireless, getOrganizationWirelessDevicesEthernetStatuses; page 3 - 200 OK&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 20:40:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-wireless/m-p/5433135#M5355</guid>
      <dc:creator>@mforman2</dc:creator>
      <dc:date>2023-03-21T20:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: dashboard.wireless.getOrganizationWirelessDevicesEthernetStatuses total_pages='all' PAGNATION_IS</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-wireless/m-p/5433136#M5356</link>
      <description>&lt;P&gt;Is the problem that the&lt;/P&gt;&lt;PRE&gt;dashboard.wireless.getOrganizationWirelessDevicesEthernetStatuses &lt;/PRE&gt;&lt;P&gt;library call just runs 'forever'? If so, it sounds a bit like a problem I found with the events call...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.meraki.com/t5/Developers-APIs/Events-same-event-different-API-return-also-call-never-returns/m-p/182558#M7450" target="_blank"&gt;https://community.meraki.com/t5/Developers-APIs/Events-same-event-different-API-return-also-call-never-returns/m-p/182558#M7450&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I eventually put some debug print to stderr in the rest_session.py library file, that let me figure out the causes and  a fix.&lt;/P&gt;&lt;P&gt;Combination of things: the actual API endpoint wasn't quite following the documented pagination rules, but also the Meraki Python library had some loop breaking logic that didn't work in this situation.&lt;/P&gt;&lt;P&gt;At the moment there is a support case open on the endpoint, I also reported on Github but so far the library has not been fixed, I just add my own patch to handle the problem.&lt;/P&gt;&lt;P&gt;It is not quite the same as the problem you have but my guess is it's similar.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 15:13:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-wireless/m-p/5433136#M5356</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2023-03-22T15:13:27Z</dc:date>
    </item>
  </channel>
</rss>

