question

Csar-6596 avatar image
0 Votes"
Csar-6596 asked saldana-msft edited

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

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-sdkmicrosoft-graph-files
graph-error.png (108.5 KiB)
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This error is still happening to all of our new users. Any recent changes in the Graph API that can cause this?

0 Votes 0 ·

Is your "publisher domain" showing as unverified on Azure too? In my case it is, I'm guessing maybe that could be the issue.

0 Votes 0 ·
Csar-6596 avatar image Csar-6596 RayCarneirodaSilva-7870 ·

No, my application is not showing as unverified

1 Vote 1 ·
Show more comments

Adding right tags/teams to assist.

Few related steps to check:

  • Do you use any scripting with your application or any changes been made to AAD application?

  • Can you repro the issue outside of the code, say calling the Graph API calls using POSTMAN/Graph explorer?

0 Votes 0 ·

We don't use any scripting with our application. Using a personal account to test with a different client id, I just created a new Azure Application with the default configurations for a desktop app, and the error is the same when the user tries to authorize the app to access his information.

I can't reproduce it in Graph Explorer because the Sign In authorization popup shows in a modern browser. I guess the problem is an incompatibility of something in the script (https://acctcdn.msauth.net/updateconsent_NwYxy7q_3vD1EdAPHFg4tw2.js?v=1) with the WinForms embedded Browser (old IE).

1 Vote 1 ·

I'm facing same issue here.

0 Votes 0 ·

getting same issue just trying to setup veeam free to access onedrive, so it's on the MS end

![94564-image.png][1]


0 Votes 0 ·
image.png (48.6 KiB)

In case it's useful for you, if you click Yes and Yes several times it finally works. For an end user it's not a solution, but for a one time configuration it may be.

0 Votes 0 ·
Csar-6596 avatar image
0 Votes"
Csar-6596 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RayCarneirodaSilva-7870 avatar image
0 Votes"
RayCarneirodaSilva-7870 answered

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]: /answers/storage/attachments/93999-error.png

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.