You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using the Microsoft Graph SDK (version 5.61.0) to upload a large file to OneDrive via an upload session for MSA Accounts (Enterprise Accounts work fine with the same method). However, after successfully creating the upload session, I keep getting a "{"error":{"code":"unauthenticated","message":"Unauthenticated"}}" error when attempting to upload the file using the SDK.
To verify that the token is valid, I tried uploading the same file using HttpClient with the same token, and it worked as expected.
So it seems the token is valid, but something may be wrong with how the SDK handles the upload.
Has anyone encountered a similar issue, or is there something I might be missing when using the Graph SDK for this scenario?