Skip to content
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

SDK initialization timed out #2298

Closed
sschoeb opened this issue Apr 29, 2024 · 8 comments
Closed

SDK initialization timed out #2298

sschoeb opened this issue Apr 29, 2024 · 8 comments

Comments

@sschoeb
Copy link

sschoeb commented Apr 29, 2024

We are using the version 2.20.0 of the teams-js library.

We see more and more the following error reported in our app:
SDK initialization timed out.

There were already two of this issues in this repo:
#1894
#1681

Both of these are closed. But this is definitely not fixed. We currently even implemented a retry, but does not help either.

What does microsoft expect from us to do if we get this error from the framework? Should we show an error to the user?

here the callstack:

Error Stack: at formatArgs (webpack:///node_modules/@microsoft/teams-js/dist/MicrosoftTeams.min.js:1:49345)
at formatArgs (webpack:///node_modules/@microsoft/teams-js/dist/MicrosoftTeams.min.js:1:54162)

Do you need any additional information?

@TrevorJoelHarris
Copy link
Contributor

Hi @sschoeb , I'm sorry that you've run into this problem. Would you mind sharing an example from your code of the app.initialize call that you are making and what arguments (if any) you are passing to it?

@sschoeb
Copy link
Author

sschoeb commented Apr 30, 2024

Thanks for your reply @TrevorJoelHarris

Sure, this is what we do:

import {app} from '@microsoft/teams-js';

await app.initialize();

As this is an angular app, we call initialize() within the ngOnInit method.
Please let me know if you need any additional information.

@TrevorJoelHarris
Copy link
Contributor

@sschoeb Can you try 2 things for me when you have time:

Follow the instructions here to enable client side logging and then reply to this with the client logs you see during a failed app initialization.

@TrevorJoelHarris
Copy link
Contributor

TrevorJoelHarris commented Apr 30, 2024

Oh, one other quick question. I am assuming you are seeing this in Teams on a desktop browser. Is that true? If not and you're reproing in some other host or platform please let me know!

@ChetanSharma-msft
Copy link

Hello @sschoeb - Please confirm the above details and let us know if you are facing this issue in New Teams client?

@sschoeb
Copy link
Author

sschoeb commented May 1, 2024

@TrevorJoelHarris Thanks for the feedback. I'll enable the client side logging and will come back here as soon as I've detailed logs.

Yes, looks like all reports are on Desktop (not yet sure about the version, but I try to figure that out as well)

@TrevorJoelHarris
Copy link
Contributor

I'm going to close this due to inactivity, but please feel free to reopen or open a new issue that includes client logs and someone will be happy to hop in and take a look for you!

@sschoeb
Copy link
Author

sschoeb commented May 6, 2024

@TrevorJoelHarris Takes a while till I have that stuff deployed properly to get the logs. Will reopen the task as soon as I've proper logs. Thank you very much for your help up to now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants