Status code keep changing after every query (404 & 200)

Brand Chong 0 Reputation points
2025-02-27T07:59:34.3166667+00:00

I am using the graph api to get the folders under my OneDrive root directory but the result is different in every run (most of the time failing). I have given it the Files.Read and Files.ReadWrite permission. This happened after I changed my microsoft password, but changing it again doesn't fix the issue.

 

The query:

https://graph.microsoft.com/v1.0/me/drive/root/children?%24select=name%2C%20id

 

The screen recording:

https://youtu.be/NIaz0Q37osg

Timestamp:

0:00 - 0:13: 404 Not found error

0:16 - 0:26: 200 Files are found correctly

0:27 - 0:32: 404 Not found error again, without changing the query

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,148 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Saranya Madhu-MSFT 1,725 Reputation points Microsoft Vendor
    2025-02-27T08:38:08.8+00:00

    Hi Alexey, 

    Thanks for reaching out to Microsoft! 

    At this moment, there is no definitive solution to the issue. The recent password change might have caused a delay in the propagation of changes across Microsoft's services. This delay can sometimes result in inconsistent behavior when accessing OneDrive via the Graph API.

    Please allow some time for the changes to fully propagate and try again later. If the issue persists after waiting, I recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to look into this issue and assist you better. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests. They can provide more detailed insights and help resolve the problem effectively.

    Hope this helps. 

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment


  2. Brand Chong 0 Reputation points
    2025-02-27T12:55:16.21+00:00

    Btw, this is the error:

    {
        "error": {
            "code": "UnknownError",
            "message": "",
            "innerError": {
                "date": "2025-02-27T12:46:24",
                "request-id": "9e96d3a8-5665-4209-a94b-e62ee2a09745",
                "client-request-id": "cc772159-8f71-6b36-ee65-63007b98c5a0"
            }
        }
    }
    
    0 comments No comments

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.