microsoftgraph / msgraph-sdk-serviceissues

Tracks service issues for follow up.
5 stars 0 forks source link

[Client bug]: 404 ItemNotFound response when requesting SharePoint Site #45

Closed JeroenDaniels closed 5 months ago

JeroenDaniels commented 4 years ago

Describe the bug We have a SharePoint site http://{tenant}.sharepoint.com/sites/{site-name}.

First i do a search request in Microsoft Graph: https://graph.microsoft.com/v1.0/sites?search='sites/{site-name}' This gives me the ID of the site, then i use this ID to use other features of the Microsoft Graph API: https://graph.microsoft.com/v1.0/sites/{tenant}.sharepoint.com,{guid},{guid}.

This request always worked, since last week i receive a 404 itemNotFound response: { "error": { "code": "itemNotFound", "message": "Item not found", } }

The weird thing is that this call sometimes works (200, with correct response) and sometimes it doesn't (404, itemNotFound) when i use the exact same call. Most of the time it switches alternately between the two responses. 200, 404, 200, 404 and so on and so forth. And sometimes i get ten 200 responses and then five 404 (or any other sequence).

This issue occurs in our DotNet implementation, XUnit testing framework and in the online Graph Explorer.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Graph Explorer online
  2. Fill in the following URL: "https://graph.microsoft.com/v1.0/sites/{tenant}.sharepoint.com,{guid},{guid}."
  3. Click on "Run Query"
  4. See error
  5. Click on "Run Query"
  6. See success
  7. Click on "Run Query"
  8. See error
  9. Click on "Run Query"
  10. See success

Expected behavior The API always works like it should and gives the correct response.

Screenshots image

Client version NuGet package version: 3.9.0 MS Graph Explorer API version online: v1.0

Desktop (please complete the following information):

Additional context

AB#7257

MIchaelMainer commented 4 years ago

@JeremyKelley Can you have your team take a look at this?

petrhollayms commented 5 months ago

Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage:

https://aka.ms/msgraphsupport or directly https://aka.ms/askgraph

For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!

Note: We will close this repository on April 19, 2024.