Open priytosh-tripathi opened 1 month ago
We're getting multiple instances where the userId provided the function in teamsjs library, named
microsoftTeams.authentication.getUser()
fails to get a valid token from another function namedmicrosoftTeams.authentication.getAuthToken()
in the same session.Teamsjs library version - 2.22.0
Thanks for reporting this, @priytosh-tripathi. Are there any errors or rejected promises returned when you run this?
If you are able, can you please collect teamjs logs when you repro the problem so I can review them? Thanks!
Some of the common Error Messages and their frequencies are as below:
"PayloadAdditionalData": Teams token retrieval failure: Error: Failed to get auth token. Token is empty due to auth provider library error., "count": 12502
"Payload_AdditionalData": Teams token retrieval failure: Error: Error: Unexpected {"Description":"(pii)","Domain":"com.microsoft.oneauth","ErrorCode":"1001","Message":"An unexpected error occurred.","SystemErrorCode":"3489661028","Tag":"7q6ch","Type":"OneAuth","additional_query_parameters_count":"1","all_error_tags":"7q6ch|7q6ch","api_error_code":"3489661028","api_errorcontext":"(pii)","api{Location}}, "count": 1290
"Payload_AdditionalData": Teams token retrieval failure: Error: Error: Unexpected {"Description":"(pii)","Domain":"com.microsoft.oneauth","ErrorCode":"1001","Message":"An unexpected error occurred.","SystemErrorCode":"2147943811","Tag":"4wbr5","Type":"OneAuth","additional_query_parameters_count":"1","all_error_tags":"4wbr5|4wbr5","api_error_code":"2147943811","api_errorcontext":"(pii)","api{Location}}, "count": 510
"Payload_AdditionalData": Teams token retrieval failure: Error: Error: ApiContractViolation {"Description":"(pii)","Domain":"com.microsoft.oneauth","ErrorCode":"2400","Message":"The operation attempted is invalid.","SystemErrorCode":"2156265473","Tag":"7q6cd","Type":"OneAuth","additional_query_parameters_count":"2","all_error_tags":"7q6cd|7q6cd","api_error_code":"2156265473","api_errorcontext":"(p{Location}}, "count": 346
These errors appear to be coming from OneAuth library used by Teams. I'll let the Teams developer support folks investigate further. FYI @Wajeed-msft
Hi @AE-MS / @Wajeed-msft ,
A gentle query about if we have an update on this?
Hi @AE-MS / @Wajeed-msft ,
Do we have some update on this?
@priytosh-tripathi - Apologies for the delay. We will test this and update you soon.
Sure thing @Nivedipa-MSFT - Thanks for the update!
@priytosh-tripathi - Could you please share your code snippet and repro video to try at our end?
@Nivedipa-MSFT I have sent you message async regarding this issue. Please let me know the specific logs you need. It isnot possible to repro this so I am unable to share video.
@priytosh-tripathi - We are checking this with engineering team, we will let you know once we get any input from them.
Hi @Nivedipa-MSFT , We're blocked on the progress of this bug. Can you please let us know some tentative ETA / Progress ?
Hi @Nivedipa-MSFT ,
Another gentle reminder, on the incident
@priytosh-tripathi - Apologies for the delay. We are still checking this with engineering team, we will update you soon.
We're getting multiple instances where the userId provided by the function in teamsjs library, named
microsoftTeams.authentication.getUser()
fails to get a valid token from another function namedmicrosoftTeams.authentication.getAuthToken()
in the same session.Teamsjs library version - 2.22.0