<?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 CUMI API - 401 Unauthorized error (Sporadic) in Audio and Video Endpoints</title>
    <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576048#M3091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Has anyone come across this issue of sporadic 401 unauthorized error?&lt;/P&gt;&lt;P&gt;Mailbox delegate account is used to access user mailboxes via CUMI. 90% of the time it authenticates fine &amp;amp;&amp;nbsp; gets to user mailboxes/messages. The 401 unauthorized error occurs occasionally &amp;amp; once it starts happening the error continues for a while but later resolves on it's own.&amp;nbsp; The server is an active-active cluster. The API requests are sent only to the publisher. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;UC version is &lt;/SPAN&gt;&lt;A href="https://community.cisco.com/" style="font-size: 10pt; line-height: 1.5em;"&gt;10.0.1.12900-2&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Error Details - HTTP Status 401 -&amp;nbsp; Unauthorized.&amp;nbsp; This request requires HTTP authentication.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2014 15:29:38 GMT</pubDate>
    <dc:creator>Beena</dc:creator>
    <dc:date>2014-10-03T15:29:38Z</dc:date>
    <item>
      <title>CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576048#M3091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Has anyone come across this issue of sporadic 401 unauthorized error?&lt;/P&gt;&lt;P&gt;Mailbox delegate account is used to access user mailboxes via CUMI. 90% of the time it authenticates fine &amp;amp;&amp;nbsp; gets to user mailboxes/messages. The 401 unauthorized error occurs occasionally &amp;amp; once it starts happening the error continues for a while but later resolves on it's own.&amp;nbsp; The server is an active-active cluster. The API requests are sent only to the publisher. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;UC version is &lt;/SPAN&gt;&lt;A href="https://community.cisco.com/" style="font-size: 10pt; line-height: 1.5em;"&gt;10.0.1.12900-2&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Error Details - HTTP Status 401 -&amp;nbsp; Unauthorized.&amp;nbsp; This request requires HTTP authentication.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 15:29:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576048#M3091</guid>
      <dc:creator>Beena</dc:creator>
      <dc:date>2014-10-03T15:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576049#M3092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sending requests always using basic authentication?&amp;nbsp; If so that's likely you're issue - starting in 10.0 the security framework (i.e. under Unity Connection and any other product shipping on VOS) restricts basic authentication request coming in to a couple a second - if you pumping requests in faster than that the subsequent ones will all fail... this would appear to be random depending on how fast the requests were coming in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to update your code to be storing the jsessionId values and doing basic authentication requests to fetch a new one only when they expire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's not the case I'm not sure what would be causing that right off hand... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 15:36:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576049#M3092</guid>
      <dc:creator>lindborg</dc:creator>
      <dc:date>2014-10-03T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576050#M3093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, we're using basic auth. What's the limit on the requests and how many concurrent conn are allowed? Currently we're doing &amp;lt;10 concurrent requests. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 15:42:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576050#M3093</guid>
      <dc:creator>Beena</dc:creator>
      <dc:date>2014-10-03T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576051#M3094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I’m not real sure what you’re meaning of “concurrent requests” is here but it doesn’t really matter – if &lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;a series of REST API requests comes in at (I think) 3 or more in a second, the later ones will fail by design.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes; font-family: Calibri;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes; font-family: Calibri;"&gt;T&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;o be clear, any application doing REST API work should be doing security properly – that means doing basic authentication, getting your sessionId and checking the headers of responses as you go to know when it’s expiring and issuing another basic request then to get another sessionId – pretty standard stuff and Java&amp;nbsp; (and .NET and probably others) have libraries intended to make this process fairly easy.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;The .NET SDK wrapper I provide for CUPI handles this automatically for instance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;Rather than throttling your requests and/or figuring out how to take it to the very edge it’d be easier and more much more reliable to update your logic for handling authentication correctly I’d think.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 16:00:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576051#M3094</guid>
      <dc:creator>lindborg</dc:creator>
      <dc:date>2014-10-03T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576052#M3095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well..we have multiple windows services sending cumi/cupi requests. The recommendation earlier from the Cisco team was to not to exceed 10 requests at any give point of time. Anyways, thanks for the feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 16:10:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576052#M3095</guid>
      <dc:creator>Beena</dc:creator>
      <dc:date>2014-10-03T16:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576053#M3096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Up to 10 sessions should be supportable (as is 10 ODBC connections by default for instance) - I don't think that's your issue - I'm assuming each session is getting it's own SessionId (i.e. you're authenticating as a different user?) - not sure without seeing much more detail about your HTTP request/response headers for your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If each of your services is doing it's own session management and each one is only sending basic authentication once and keeping the sessionIds in shape and renewing them as necessary that should work - I've done this for load testing tools with my CUPI SDK for 3 or 4 at a time without issue (never tried 10 but I don't see why it would be an issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect, but don't know, that each of your sessions is doing a series of HTTP request responses and you're sending basic authentication with all of them and they come in fast enough at times to hit the rejection threshold - but that's just an assumption based on what little I know about your service setup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 16:19:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576053#M3096</guid>
      <dc:creator>lindborg</dc:creator>
      <dc:date>2014-10-03T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: CUMI API - 401 Unauthorized error (Sporadic)</title>
      <link>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576054#M3097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The windows services are multi-threaded. auth credentials is the same for all&amp;nbsp; threads - (mailbox delegate account).&amp;nbsp; each thread sends basic auth. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 16:42:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/audio-and-video-endpoints/cumi-api-401-unauthorized-error-sporadic/m-p/3576054#M3097</guid>
      <dc:creator>Beena</dc:creator>
      <dc:date>2014-10-03T16:42:22Z</dc:date>
    </item>
  </channel>
</rss>

