<?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: MV Snapshot API returns an error sometimes in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420715#M3374</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error is gone away after replacing the url.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you're great!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!!!&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 11:08:40 GMT</pubDate>
    <dc:creator>bear</dc:creator>
    <dc:date>2019-07-19T11:08:40Z</dc:date>
    <item>
      <title>MV Snapshot API returns an error sometimes</title>
      <link>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420713#M3372</link>
      <description>&lt;P&gt;Hi , all&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I develop an application with MV Snapshot API (C#.net).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before this , I tried to use Snapshot API with curl and Postman.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The command sends and returns are OK from above both tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the command is successful from my application as well as both tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but , from my application , sometimes Snapshot API returns an error with the same source codes,not always.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;the error message is &lt;BR /&gt;"You are being&lt;BR /&gt;&amp;lt;a href="&lt;A target="_blank" rel="noopener"&gt;https://n25.meraki.com/api/v0/networks/L_xXXXXXXXXXXXXXXXXXX/cameras/YYYY-YYYY-YYYY/snapshot"&amp;gt;redirected&amp;lt;/a&lt;/A&gt;&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug of the API? or should I change my codes? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use RestClient. the following is the part of my codes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public static string GetSnapshot() // Get a snapshot from MV camera&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var client = new RestClient("&lt;A href="https://api.meraki.com/api/v0/networks/L_XXXXXXXXXXXX/cameras/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_XXXXXXXXXXXX/cameras/&lt;/A&gt;" + MVSerialNumber + "/snapshot");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var request = new RestRequest(Method.POST);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;request.AddHeader("X-Cisco-Meraki-API-Key", MyMerakiAPIKey);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IRestResponse response = client.Execute(request);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return response.Content;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 06:03:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420713#M3372</guid>
      <dc:creator>bear</dc:creator>
      <dc:date>2019-07-19T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: MV Snapshot API returns an error sometimes</title>
      <link>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420714#M3373</link>
      <description>&lt;P&gt;Hmm that's not a very helpful error but I think it may have to do with the redirection to your specific shard.&lt;/P&gt;&lt;P&gt;Try using the shard url directly in your API call.&lt;/P&gt;&lt;P&gt;Replace:&lt;/P&gt;&lt;PRE&gt;var client = new RestClient("https://api.meraki.com/api/v0/networks/L_XXXXXXXXXXXX/cameras/" + MVSerialNumber + "/snapshot");&lt;/PRE&gt;&lt;P&gt;by:&lt;/P&gt;&lt;PRE&gt;var client = new RestClient("https://n25.meraki.com/api/v0/networks/L_XXXXXXXXXXXX/cameras/" + MVSerialNumber + "/snapshot");&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 10:41:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420714#M3373</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-07-19T10:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: MV Snapshot API returns an error sometimes</title>
      <link>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420715#M3374</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error is gone away after replacing the url.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you're great!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 11:08:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420715#M3374</guid>
      <dc:creator>bear</dc:creator>
      <dc:date>2019-07-19T11:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: MV Snapshot API returns an error sometimes</title>
      <link>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420716#M3375</link>
      <description>&lt;P&gt;You're welcome! Note that the shard might be different in other organizations so to create a more robust script you should make it follow the redirect or figure out the shard number by performing a GET on your org first.&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Note also that most HTTP libraries and clients will not follow a redirect with an HTTP verb other than GET, and may instead follow the redirect but substitute GET for the HTTP verb. As a result, you may find a redirect on DELETE, POST, or PUT will look as though a GET was requested. To avoid this, first perform a GET on the organization you are working with, and store the URL you are working with, then use that URL for subsequent requests (particularly those that modify state)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Source:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API" target="_blank" rel="nofollow noopener noreferrer"&gt;https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 11:29:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mv-snapshot-api-returns-an-error-sometimes/m-p/5420716#M3375</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-07-19T11:29:58Z</dc:date>
    </item>
  </channel>
</rss>

