<?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: Sudden 'meraki.exceptions.SessionInputError:' presented performing basic API calls in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408393#M1592</link>
    <description>&lt;P&gt;Could be coincidence but I updated meraki cli from 1.5.0 to 1.5.1 today and my calls suddenly started working again &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 02:13:45 GMT</pubDate>
    <dc:creator>Paccers</dc:creator>
    <dc:date>2025-05-30T02:13:45Z</dc:date>
    <item>
      <title>Sudden 'meraki.exceptions.SessionInputError:' presented performing basic API calls</title>
      <link>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408390#M1589</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've been running basic API calls through Windows WSL environment for a few years now and haven't run in to any problems other than my poor syntax at times. I've created Networks, claimed APs and performed many updates through API calls in that time. Regular Ubuntu apt updates have been performed along with meraki API to stay up to date with no impact on my ability to make calls.&lt;/P&gt;&lt;P&gt;As of about two days ago I'm suddenly being thrown the error shown below when performing even the most basic call to getOrganizations (meraki -k &amp;lt;KEY&amp;gt; organizations getOrganizations). I've reinstalled Ubuntu WSL environment &amp;amp; generated a new API key but the issue has persisted, I can't find anything specific to this error online either. I did check out the User Agents guide linked but I got a bit lost!&lt;/P&gt;&lt;P&gt;I'm very high-level when it comes to troubleshooting this particular stuff so any pointers in the right direction are greatly appreciated!&lt;/P&gt;&lt;P&gt;Current installed Python is v3.12.3&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/&amp;lt;MYUSER&amp;gt;/.local/bin/meraki", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;sys.exit(main())&lt;BR /&gt;^^^^^^&lt;BR /&gt;File "/home/&amp;lt;MYUSER&amp;gt;/.local/share/pipx/venvs/meraki-cli/lib/python3.12/site-packages/meraki_cli/__main__.py", line 1249, in main&lt;BR /&gt;api = meraki.DashboardAPI(args.apiKey, suppress_logging=True,&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/home/&amp;lt;MYUSER&amp;gt;/.local/share/pipx/venvs/meraki-cli/lib/python3.12/site-packages/meraki/__init__.py", line 151, in __init__&lt;BR /&gt;self._session = RestSession(&lt;BR /&gt;^^^^^^^^^^^^&lt;BR /&gt;File "/home/&amp;lt;MYUSER&amp;gt;/.local/share/pipx/venvs/meraki-cli/lib/python3.12/site-packages/meraki/rest_session.py", line 159, in __init__&lt;BR /&gt;'User-Agent': f'python-meraki/{self._version} ' + validate_user_agent(self._be_geo_id, self._caller),&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/home/&amp;lt;MYUSER&amp;gt;/.local/share/pipx/venvs/meraki-cli/lib/python3.12/site-packages/meraki/common.py", line 43, in validate_user_agent&lt;BR /&gt;raise SessionInputError("MERAKI_PTYHON_SDK_CALLER", caller, message, doc_link)&lt;BR /&gt;meraki.exceptions.SessionInputError: Please follow the user agent format prescribed in our User Agents guide, available here: &lt;A href="https://developer.cisco.com/meraki/api-v1/user-agents-overview/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/user-agents-overview/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 08:46:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408390#M1589</guid>
      <dc:creator>Paccers</dc:creator>
      <dc:date>2025-05-29T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden 'meraki.exceptions.SessionInputError:' presented performing basic API calls</title>
      <link>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408391#M1590</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;As you have correctly pointed out it appears to be to do with your user-agent.&lt;/P&gt;&lt;P class=""&gt;According to Meraki’s guidelines, the &lt;SPAN class=""&gt;User-Agent&lt;/SPAN&gt; string should follow this structure:&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;ApplicationName/Version VendorName&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Rules:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;ApplicationName&lt;/SPAN&gt;: Single word, no spaces or special characters&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Version&lt;/SPAN&gt;: Optional but recommended&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;VendorName&lt;/SPAN&gt;: Your organization’s name (also without spaces or special characters)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;PlanetCraftLite/0.8b LunarCommander&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;BurrowFinder/2.5 HappyRabbitProductions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;It looks like the SDK is falling back to the internal default because a custom &lt;SPAN class=""&gt;User-Agent&lt;/SPAN&gt; string wasn’t provided, either globally or during initialisation.&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;You can see the fallback behavior here in the SDK:&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://github.com/meraki/dashboard-api-python/blob/a026860357c997689c79295c9cac6040cbc13808/meraki/rest_session.py#L159" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/meraki/dashboard-api-python/blob/a026860357c997689c79295c9cac6040cbc13808/meraki/rest_session.py#L159&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;If you’d like to ask the developers for more detail or suggest improvement, feel free to raise an issue on the SDK repo — they’re usually quite responsive.&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;However in the meantime, if you are not happy to amend your python code directly adding the user-agent, then configure it globally for the SDK here.&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://github.com/meraki/dashboard-api-python/blob/main/meraki/config.py" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/meraki/dashboard-api-python/blob/main/meraki/config.py&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;# Example 1: if your application is named 'Mambo', version number is 5.0, and your vendor/company name is Vega, then
# you would use, at minimum: 'Mambo Vega'. Optionally: 'Mambo/5.0 Vega'.
# Example 2: if your application is named 'Sunshine Rainbows', and company name is 'hunter2 for Life', and if you
# don't want to report version number, then you would use, at minimum: 'SunshineRainbows hunter2ForLife'
# The choice is yours as long as you follow the format. You should **not** include other information in this string.
# If you are an official ecosystem partner, this is required.
# For more guidance, please refer to https://developer.cisco.com/meraki/api-v1/user-agents-overview/
MERAKI_PYTHON_SDK_CALLER = "SunshineRainbows"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;Hope this helps,&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;Jon&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 10:02:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408391#M1590</guid>
      <dc:creator>jonhumph</dc:creator>
      <dc:date>2025-05-29T10:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden 'meraki.exceptions.SessionInputError:' presented performing basic API calls</title>
      <link>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408392#M1591</link>
      <description>&lt;P&gt;Are you using the Meraki SDK?  If so, try updating it.&lt;/P&gt;&lt;P&gt;pip3 install -U meraki&lt;/P&gt;&lt;P&gt;If you are not using the Meraki SDK - following that link in the error message to verify that is the format you are using.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/user-agents-overview/#user-agents" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/user-agents-overview/#user-agents&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 19:59:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408392#M1591</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2025-05-29T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden 'meraki.exceptions.SessionInputError:' presented performing basic API calls</title>
      <link>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408393#M1592</link>
      <description>&lt;P&gt;Could be coincidence but I updated meraki cli from 1.5.0 to 1.5.1 today and my calls suddenly started working again &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 02:13:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408393#M1592</guid>
      <dc:creator>Paccers</dc:creator>
      <dc:date>2025-05-30T02:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden 'meraki.exceptions.SessionInputError:' presented performing basic API calls</title>
      <link>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408394#M1593</link>
      <description>&lt;P&gt;Great News &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 10:13:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sudden-meraki-exceptions-sessioninputerror-presented-performing/m-p/5408394#M1593</guid>
      <dc:creator>jonhumph</dc:creator>
      <dc:date>2025-05-30T10:13:16Z</dc:date>
    </item>
  </channel>
</rss>

