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

No claim present in 'microsoft-graph-client' package's create api's 401 unauthorized response #1113

Closed
6 tasks
Amanp1151-123 opened this issue Dec 21, 2022 · 0 comments · Fixed by #1133 or SCVApp/SCVAppBackend#182
Assignees

Comments

@Amanp1151-123
Copy link

Bug Report

Prerequisites

  • Can you reproduce the problem?
  • Yes
  • Are you running the latest version?
  • Yes
  • Are you reporting to the correct repository?
  • Yes
  • Did you perform a cursory search?
  • Yes

For more information, see the CONTRIBUTING guide.

Description

[Description of the bug or feature]

When hitting below URL

https://graph.microsoft.com/v1.0/me/drive/root:/Transcribed%...

We are getting 401 Unauthorized error while onedrive upload but there is no claim present in it, which we can see in browser network traces. Since this claim is missing in error response body, we are not able to request New token.
According to our understanding only the response body is coming in case of exception while we need response headers as well to read claim challenge value in current case

The reason for 401 Unauthorized is fine as Server want Client to reauthenticate itself and fetch Fresh token but issue is error body is missing the claim value. This is leading to we not being able to refresh Access Token.

As can be seen in below attached network trace, Http response body is having claim value under WWW-Authenticate header but same is not getting passed in error response, requesting you to kindly check the above mentioned and help.

Network Traces and error response body screenshot attached below
Console Errors: [Is there any console error]

Screenshots: [If applicable, add screenshots to help explain your problem]
image
image

Steps to Reproduce

  1. Sign in with a account in win32 word.
  2. Try to launch 'Transcribe' feature from the Home tab
  3. Click 'Live Recording' and generate a transcript.
  4. Change the password of the account.
  5. Try to generate transcript again in the same pane session.
  6. The onedrive upload will fail with 401 unauthorized error.

Expected behavior: [What you expected to happen]
We should be able to get the transcript after handling claim challenge in the code.
Actual behavior: [What actually happened]
We got 401 unauthorized error.

Additional Context

Add any other context about the problem here..

Usage Information

Request ID - Value of the requestId field if you are receiving a Graph API error response

SDK Version - [SDK version you are using]

  • Node (Check, if using Node version of SDK)

Node Version - [The version of Node you are using]

  • Browser (Check, if using Browser version of SDK)

Browser Name - [The name of Browser that you are using for SDK]

Version - [The version of the browser you are using]

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