List_SharePoint_Sites() returns error 404
- Dominant language
- R
- Stars
- 368
- Forks
- 58
- Avg merge
- 1h 42m
- Merged PRs (30d)
- 4
Description
One of my users is experiencing an issue with this package when using the List_SharePoint_Sites() command.
The command always returns the following error:
_Using authorization_code flowWaiting for authentication in browser...
Press Esc/Ctrl + C to abortAuthentication complete.Error in process_response(res, match.arg(http_status_handler), simplify) :
Not Found (HTTP 404). Failed to complete operation. Message:
Requested site could not be found._
Retrieving individual sites works as expected, and the user can retrieve their followed sites via Graph using the GET https://graph.microsoft.com/v1.0/me/followedSites endpoint via PowerShell and Graph Explorer.
Troubleshooting steps taken:
- Re-installed the package.
- Cleared the cached credentials via AzureAuth::clean_token_directory() and AzureGraph::delete_graph_login()
- Tried running List_SharePoint_Sites with explicit app id of AzureR/Microsoft365R default Enterprise Registration.
- Tried running List_SharePoint_Sites with explicit app id of a custom App Registration.
- Tested https://graph.microsoft.com/v1.0/me/followedSites Graph endpoint via Graph Explorer.
- Tested https://graph.microsoft.com/v1.0/me/followedSites Graph endpoint via PowerShell with the AzureR/Microsoft365R Enterprise Registration Application (Client) ID.
Contributor guide
Research direction
Start at the List_SharePoint_Sites() entry point and compare its Microsoft Graph request with the working GET /v1.0/me/followedSites calls described in the issue. Reproduce the 404 using the listed authorization flows and verify that listing followed sites completes without the “Requested site could not be found” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100