OneDrive Graph First Authorization error: Object doesn't support property or method 'has'

César 236 Reputation points
2021-05-03T17:06:04.55+00:00

I have a desktop application using MS Graph SDK that asks users to authorize access to their OneDrive accounts, using OAuth. It has worked fine for months, but starting today users are getting an error the first time they are asked to give permissions to my app. The error doesn't show if the account has previously given access to the app.

You can reproduce it trying to sign in in the OneDrive sample app: https://github.com/OneDrive/onedrive-sample-apibrowser-dotnet

I attach a screenshot of the error (in spanish):

93357-graph-error.png

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
303 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
733 questions
{count} votes

Accepted answer
  1. César 236 Reputation points
    2021-05-07T09:51:09.267+00:00

    The error is not showing anymore, I guess they have fixed or reverted the problematic change

    No comments

1 additional answer

Sort by: Most helpful
  1. Ray Carneiro da Silva 1 Reputation point Microsoft Employee
    2021-05-05T16:59:02.997+00:00

    I'm facing same issue. I've download this sample (https://github.com/OneDrive/onedrive-sample-apibrowser-dotnet), did all basic configuration and during login attempt it is displaying an error message. ![93999-error.png][1] [1]: /api/attachments/93999-error.png?platform=QnA

    No comments