-
Notifications
You must be signed in to change notification settings - Fork 196
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
"Initialization Failed. No Parent window found." in desktop app #2533
Comments
Hi @mfsysadmin, thank you for reaching with the piece of code regarding of initialization on your app. Could you please follow the documentation in our wiki to turn on client logging and then share ALL of logs here so that we can have more detail to investigate what is exactly going on with your app and provide guidance for you? Also, could you please elaborate more on which host platform (i.e. Teams web, Teams desktop) you are trying to make your app run on and what version of Teams-JS library you are using? |
Hi @KangxuanYe, in the webapp I have the following log messages:
I use teams.microsoft.com, I don't know why it tries *.www.office.com On Teams web I have the "Error: SDK initialization timed out." message, while in the desktop app I have "Error: Initialization Failed. No Parent window found.". |
Hello, I also have this issue. It suddenly appeared with no code changed. (Windows Desktop Version) |
Hi @JE-Development , could you please create another ticket for us and then following the step that I mentioned above to send logs to us in the new ticket you created? In this way, your thread will not be messed up and we can help you better. Thanks. |
Hi @mfsysadmin I'll be looking into this error for you, a few questions I have is that you mentioned that you are using Another question I have is how are you currently importing the TeamsJS library and if you downgraded your version from 2.28.0 to 2.26.0 do you see the same behavior? Now to answer your question about why you are seeing the |
I use both web and desktop application but in the webapp I do not have debugger.
Yes the errors are the same
No, that one is the last message. |
@mfsysadmin I think we are getting closer to finding one of the issues on our end. I just have two follow up questions. What browser are you currently using when testing? Do you see the exact same error logs when using a different browser by any chance. I'm still interested to know how you are importing the TeamsJS library in the first place. I noticed that in the logs there is a CDN call to "https://cdn.jsdelivr.net/npm/@microsoft/[email protected]/dist/MicrosoftTeams.min.js" instead of our recommended endpoint of "https://res.cdn.office.net/teams-js/2.28.0/js/MicrosoftTeams.min.js" this stands out to me and is why I wanted to double check how you are importing our library. |
@jadahiya-MSFT I'm currently using Firefox, haven't tried chrome yet. Also as I mentioned I have problems with the desktop application as well not only in browser. |
Thanks for your continued assistance! Currently we have an issue with Firefox and one of the logs (the one about *.office.com) appears to be that same issue. I'm working on a fix now, as for the other SDK initialization errors you are seeing I don't believe they are related to this issue particular issue and we will most likely need some more logs, would you be able to run the log step that @KangxuanYe suggested in a Chromium based browser like Edge, Chrome, or Arc depending on your preference. In the meantime I will put out a fix for the Firefox issue you are running into to unblock your testing on Firefox. |
I checked the issue on Chrome, I still get the error: Error: SDK initialization timed out.
This is all I got. Is there any way to debug the logs on the desktop app? |
@mfsysadmin, thank you so much for sharing the client logging for us. This is super helpful and we think your app has sent out the As for debug Teams, I came back from Teams team and the answer would be it depends. If you are on that ring, you can right click your little Teams icon in right bottom of your desktop (I am assuming you are using Windows machine), and select |
@KangxuanYe I don't have any manifest etc. I have a simple web url which needs authentication with the team members. The Engineering Tools option is not in the context menu for me. |
I have the following code from Microsoft Learn:
Unfortunately on windows desktop app I get the following error:
Error: Initialization Failed. No Parent window found.
Also in web app I have this error:
Error: SDK initialization timed out.
The text was updated successfully, but these errors were encountered: