lavinir / hassio-onedrive-backup

MIT License
257 stars 9 forks source link

Initializing... Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied #239

Open gRiMMi83 opened 1 week ago

gRiMMi83 commented 1 week ago

Hi, i tryed your onedrive backup with a personal and a business onedrive account, it's not working for me. any solution?

10/16/2024 09:41:37 [15] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243 10/16/2024 09:41:37 [15] Error: accessDenied: Access denied 10/16/2024 09:46:37 [25] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243 10/16/2024 09:46:37 [25] Error: accessDenied: Access denied

Patrice3122 commented 1 week ago

I encountered a persistent issue while trying to use the add-on, regardless of the browser or mode I used to set up the add-on. I completed the signing process successfully through both the standard or private modes of Microsoft Edge and Google Chrome. Unfortunately, each add-on start will result in the same error: Error: accessDenied: Access denied.

To rule out any potential interference from other accounts or sessions, I built a Lubuntu virtual machine (VM) and repeated the process using the pre-installed Firefox browser. Even in this fresh environment, the issue persisted, leading to the same access denied error.

Here's a summary of the Microsoft account setup:

On the following website https://account.live.com/consent/Manage, I found that hassio-ondrive-backup was on the Microsoft platform with the necessary access permission. I have attached a screenshot.

hassio-drive

Following the uninstallation of the add-ons, I can still find information about the add-on through the SSH terminal by running the following command: ha ad info de91e161_hassioonedrive_backup. Do you know how I can entirely uninstall the add-on? I want to restart using a fresh installation of the add-on.

I would appreciate any suggestions regarding these issues.

THW712 commented 3 days ago

I am experiencing exactly the same issue. I have no idea how to resolve this. Thank you