MS Graph Authentication error

Praveen Senguttuvan 1 Reputation point
2022-06-08T10:45:34.72+00:00

Hello everyone,

As i was trying to automate the process of downloading some files from share point list, but i was not able to download it and iam facing ERROR: server returned error in RSTR in Visual studio code , Could you guys please help to solve the issue.

Microsoft 365 and Office SharePoint Development
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2022-06-09T06:16:09.817+00:00

    Hi anonymous user
    Per your description, The issue is about Authentication. You can check if the code return 401 or 403. For 401 Unauthorized error, Please make sure that your application is presenting a valid access token to Microsoft Graph as part of the request. For 403 Forbidden error, Please make sure that you have enough permission to the graph api you call.
    Please check the steps in the following document
    https://learn.microsoft.com/en-us/graph/resolve-auth-errors


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.