Skip to content

OneDrive: Microsoft.Graph.ServiceException #77

Description

@sekogan

OneDrive authorization doesn't work anymore after I've changed password on my Microsoft account.

Steps to reproduce the issue:

  • Add a OneDrive account to KeeAnywhere Settings.
  • Change password of your Microsoft account on microsoft.com.
  • Remove the OneDrive account from KeeAnywhere Settings and try to add it again. In the popup window enter email, password, approve 2-factor authentication request on your phone, press Yes on the "Let this app access your info?" page.

Expected:

  • The account is added to the list.

Actual:

  • A message box is displayed:
---------------------------
KeePass - Fatal Error
---------------------------
A fatal error has occurred!
An extended error report has been copied to the clipboard.
Authentication failed!
Exception of type 'Microsoft.Graph.ServiceException' was thrown.
---------------------------
OK   
---------------------------

Clipboard content:

Authentication failed!

Exception of type 'Microsoft.Graph.ServiceException' was thrown.
Microsoft.Graph.Core
   at Microsoft.Graph.HttpProvider.<SendRequestAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.HttpProvider.<SendAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.OneDrive.Sdk.Authentication.OAuthHelper.<SendTokenRequestAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at KeeAnywhere.StorageProviders.OneDrive.OneDriveStorageConfigurator.<Claim>d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at KeeAnywhere.OAuth2.OAuth2Form.<OnNavigated>d__3.MoveNext()
Void MoveNext()


Inner:
An error occurred while sending the request.
mscorlib
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.HttpProvider.<SendRequestAsync>d__21.MoveNext()
Void ThrowForNonSuccess(System.Threading.Tasks.Task)

KeeAnywhere.Accounts.json contains an empty array:

[]

KeePass 2.35
KeeAnywhere 1.3.1.0
Windows 10 RS1 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions