-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft Teams JS SDK initialization timed out. #1681
Comments
Hi RishavNice! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies. Best regards, Teams Platform |
@RishavNice - Thanks for reporting your issue. Meanwhile, we are trying it from our end and get back to you. |
@RishavNice - We are not able to repro the scenario, It is working fine from our end. Are you trying the same? Sample Link- https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-sso/nodejs |
Hi @sayali-MSFT We can still face the issue. We are using React JS. As discussed previously, it works fine in browser Teams but fails in the case of Desktop App Teams. I believe if the code is the same how can it partially work on one platform and fail on another? |
The scenario is -
This only happens in Teams Desktop App not in browser application. |
@RishavNice -Thanks for providing the information, we will check it from our end and get back to you. |
I encounter exactly the same error using 2.9.1 microsoft/teams-js.
On web teams (teams.microsoft.com) works perfectly with normal flow, but on desktop this is the workaround i could find. @sayali-MSFT Please let us know how is this going! |
Thanks @andreidutu for your answer. Appreciate :) @sayali-MSFT |
We have troubleshooted the MSFT JS SDK from our side, here is our overview - There is a function -
The main issue is that the code snippet never goes inside the |
@RishavNice - We are checking with the internal team, we will let you know once we get any update. |
@sayali-MSFT Any updates? |
@RishavNice - Apologies for the delays, we are informing to the engineering team, and they will look into this. We will let you know once we get any update. |
@RishavNice thanks for the information you provided. Could you explain what you meant by, "server side hosted"? Are you referring to a server-side rendering tool? Additionally, could you provide more details on the specific scenario you are trying to achieve and why initialization is being called the second time? This additional information could help us better understand the problem as we are unable to reproduce the issue you described. Thanks |
@nwojod-MSFT Secondly, initialization is being called for the second time because once the user enters the user name on the login page they leave our application domain and get redirected toward the IDP (Azure in this case.) After successful redirection when they are authenticated from the IDP they are redirected back to our application by the return URL we have configured on the IDP side. Once they come back to the application, to close the authentication popup we need to initialize the library again inside the popup to utilize the SDK methods. So when we try to initialize the library it gets timed out. I hope this makes sense. |
@nwojod-MSFT @sayali-MSFT Any updates? |
@RishavNice -Engineering team is looking into it. We will inform you once we get any update. |
@RishavNice apologies for the delay in my response; I was out of the office. Thank you for providing additional information about the flow and the objective you're trying to achieve. Our team is still investigating the issue to determine its root cause, and we're currently attempting to reproduce the issue. I'll provide an update once we're able to resolve it. Thanks |
Hi @RishavNice, Is the hostname (aka domain) from where you start authentication.authenticate (i.e. the hostname of URL passed to this API) is different from the hostname of the return URL (which IDP redirects to)? If yes, Pls try using the same domain for both the URLs |
Hi @anmaur The hostname (aka domain) from where I start authentication.authenticate is - The hostname of the return URL is - I believe both the URL's have the same domain except for the query params appended which is obviously different in both the cases I have already added the function of the SDK which is causing issues - cc: @sayali-MSFT |
Hi @RishavNice, Thanks for the information. I am unable to repro this from my end and would need more information if :
|
If you're unable to get the issue while multiple other people are getting the same issue, would you mind sharing the complete code sample using JS. Windows OS - 11 / Teams Version - 1.6.00.6754 / Teams JS Sdk Version - 2.9.1; |
Fixed in recent version of MSFT JS SDK. Closing now. |
Tell us about your experience!Hi RishavNice! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform. Best regards, |
We are facing an issue in the SDK -
Version - "@microsoft/teams-js": "2.9.1",
Issue - SDK initialization timed out.
Troubleshoot - SSO works fine in the browser (Chrome) case. But when we run the same manifest, the same app in the MS Teams Desktop application then after SSO when it returns back to the application from IDP and re-initializes the library it fails saying that the SDK initialization timed out.
It's weird that the issue only happens in the desktop application but not when we run inside the web Chrome browser.
I saw multiple issues logged in Github pertaining to this, but I did not get any reliable solution.
LINK - 1
LINK - 2
Screenshot -
Please help us out.
The text was updated successfully, but these errors were encountered: