Error: AssertionFailed when trying to Sign In RRS feed

  • Question

  • I am using the Skype Web SDK Samples to try to test out the SDK. Unfortunately I am failing on the first hurdle. I have managed to create the website and completed all the server prerequisites. But I am getting a javascript error stating 'Error: AssertionFailed'. This is coming from the SDK-build.js file from the cdn, on line 569. Can anyone point me to what I am doing wrong.
    Thursday, May 14, 2015 1:46 PM

All replies

  • Hi Jagdip, 

    What were you doing when you got the error? Just loading the page, or trying to sign in? Are you able to post some sample code for us? Ideally, the smallest amount of code that still gives the error. That error gets thrown a ton of times, depending on what's gone wrong - so it's hard to know exactly why it's not working for you.

    Couple of other questions which might help: are you running the samples on your machine, hosted at http://localhost? Are you signing into your own environment, or using the developer sandbox?

    Looking forward to seeing your code and helping you further!


    Tom Morgan | Skype for Business Blog:

    Thursday, May 14, 2015 7:09 PM
  • Hi Tom,

    Thanks for replying. I have not altered the code sample from the Skype Web SDK Samples. I followed your prerequisites for setting up the server. Here are some details I have found:

    1. The error occurs during sign in.
    2. Chrome console gives a 405 Method Not Allowed Error for ping on lyncdiscover.<domain>.com and lyncexternal.<domain>.com
    3. Chrome console gives a 401 Unauthorized error for a GET on the AutodiscoverService.svc
    4. I used the Chrome debugger tool to track back the error to a line in the SDK. The javascript code is running a function called sendRequest(request, send). Within this function, there is a call that is expecting a response. The response happens, but there is not Server value in the response. This is what is causing the error.

    The response from the server is as follows (I marked the Server value in bold - this is where it is erroring):

    Date: Fri, 15 May 2015 07:20:10 GMT

    WWW-Authenticate: Bearer trusted_issuers="", client_id="00000004-0000-0ff1-ce00-000000000000", MsRtcOAuth href="https://lyncexternal.<domain>.com/WebTicket/oauthtoken",grant_type="urn:microsoft.rtc:windows,urn:microsoft.rtc:anonmeeting,password"


    Content-Type: text/html

    Cache-Control: no-cache

    Content-Length: 1293

    X-Content-Type-Options: nosniff


    Interestingly, my colleague was using the older UCWA version, and that works as expected on the same website. I am running the code on the company wifi - which I have been told is not internal. I am going to run a test from my mobile to ensure it is run externally. Will update if I find more.

    Friday, May 15, 2015 7:32 AM
  • and... you've added the domain where you're running the Skype Web SDK code as a trusted domain using Set-CsWebServiceConfiguration, for all Edge,FE and Director servers in your domain? Note that port numbers and http/https are all treated as different domains.  And you're running at least Lync Server 2013 CU 1 on all Edge/FEs?

    If so, it might be time for a Fiddler trace, if you're able to do that and post the logs?


    Tom Morgan | Skype for Business Blog:

    Friday, May 15, 2015 1:49 PM