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

Error: not_specified #577

Closed
ascott18 opened this issue May 11, 2021 · 15 comments
Closed

Error: not_specified #577

ascott18 opened this issue May 11, 2021 · 15 comments

Comments

@ascott18
Copy link

We're seeing the following error in our production logs. Please advise on how we're meant to deal with the "not_specified" error from Teams. Perhaps Teams should generate better error messages?

@microsoft/team-js version: 1.9.0

Error: not_specified
    at webpack:///node_modules/@microsoft/teams-js/dist/MicrosoftTeams.min.js:1:8959
    at apply (webpack:///node_modules/@microsoft/teams-js/dist/MicrosoftTeams.min.js:1:2816)
    at u (webpack:///node_modules/@microsoft/teams-js/dist/MicrosoftTeams.min.js:1:6944)
    at processMessage (webpack:///node_modules/@microsoft/teams-js/dist/MicrosoftTeams.min.js:1:37798)
@ghost
Copy link

ghost commented May 11, 2021

Hi ascott18! 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

@Jagadeesh-MSFT
Copy link

Jagadeesh-MSFT commented May 12, 2021

Hi @ascott18, could you please explain briefly and share the repro steps to mitigate the issue.

@ascott18
Copy link
Author

I have no explanation for this - we're just seeing this error happening for some users in our production logs. This isn't something that our code is doing - as you can see, the stack trace is entirely within Teams code. Teams is throwing useless, nondescriptive errors. We'd like for this issue to be fixed by Microsoft in the event that it is a symptom of something causing an adverse user experience.

@Nikitha-MSFT
Copy link

In production logs means are you using developer tools to capture log? Could you please share how you are capturing the logs? Also please specify when you are getting the "not_specified" errors? Are you receiving this on action performed? Could you please explain your scenario in more detail?

@ascott18
Copy link
Author

  • We're seeing this error in the Application Insights logging that we have running in our app.
  • Our end users are encountering this error. We do not have any information about what the users were doing, or even who the users are.
  • We're seeing this at all stages of page lifecycle (sometimes a second or two after page load, sometimes several minutes after page load).
  • So far, all instances of this error have happened in the Teams desktop app - never on mobile or in the browser.

@Jagadeesh-MSFT
Copy link

Hi @ascott18, we are taking this to our internal team, will update you soon.

@Jagadeesh-MSFT
Copy link

Jagadeesh-MSFT commented Jun 16, 2021

Hi @ascott18, it seems like there is a bug in your integration with the ApplicationInsights-JS SDK which is resulting in these not_specified errors getting logged. Could you please take a look at this similar issue and double check that you are correctly passing the exception information to the App Insights SDK:
Getting error messages of the format not_specified at e.sendExceptionInternal · Issue #1006

@ascott18
Copy link
Author

@Jagadeesh-MSFT We are not manually calling trackException - this is being caught by the passive error catching mechanisms of the AI JS SDK.

@Jagadeesh-MSFT
Copy link

Hi @ascott18, we are taking this to our internal team, will update you soon.

@Wajeed-msft
Copy link
Contributor

@ydogandjiev - do you know what might be going wrong here?

@Wajeed-msft
Copy link
Contributor

@ascott18 - we are unable to repro this at our end. Would it be possible for you to get repro steps?

@ascott18
Copy link
Author

ascott18 commented Sep 20, 2021

No. As I previously mentioned,

I have no explanation for this - we're just seeing this error happening for some users in our production logs.

and

Our end users are encountering this error. We do not have any information about what the users were doing, or even who the users are.

Since the stack trace is entirely contained within the Microsoft Teams JS SDK, I would expect that you guys could trace through your own code and see what might be triggering this.

@ChetanSharma-msft
Copy link

@ascott18 - We have raised a internal bug for it and engineering team is looking into it

@ydogandjiev
Copy link
Contributor

ydogandjiev commented Dec 2, 2021

Spent some more time on this issue today. Pulling up v1.9.0 of the Client SDK in VS Code I looked for the code called out in the exception stack:
image

And got this:
image

Which appears to be this code:

export function getGenericOnCompleteHandler(errorMessage?: string): (success: boolean, reason?: string) => void {

So that means you are most likely calling one of these APIs without specifying a callback:

And when the API call fails the generic callback handler throws an exception. @ascott18, can you please try passing your own callback function to these APIs and using it to log a more obvious error message to your traces?

@ghost
Copy link

ghost commented Jan 12, 2022

Tell us about your experience!

Hi ascott18! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.

Best regards,
Teams Platform

@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants