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
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
I'm currently adding dropbox file sharing to an application I'm working on, and I have it setup to get the auth key from the user, and then it stores the auth key in the user registry. Now I'm having issues when trying to get user profile data.
It keeps throwing "System.AggregateException" with the inner Exception of {"No auth method found"} on the line:
"var accountInfo = await client.Core.Accounts.AccountInfoAsync();"
This is the relevant piece of code:
publicstaticvoidinit(){if(!RegistryManager.HasKey("DropboxAuth"))newDropboxAuth();//DropboxAuth is a winform with a web brower element that the user uses to login and get their auth tokenelse{authKey=RegistryManager.GetKey("DropboxAuth");InitClient().Wait();}}privatestaticasyncTaskInitClient(){client=newClient(DropboxAuth.options);varauthRequestUrl=awaitclient.Core.OAuth2.AuthorizeAsync("code");vartoken=awaitclient.Core.OAuth2.TokenAsync(authKey);// Get account info -- error on this linevaraccountInfo=awaitclient.Core.Accounts.AccountInfoAsync();Console.WriteLine("Uid: "+accountInfo.uid);Console.WriteLine("Display_name: "+accountInfo.display_name);Console.WriteLine("Email: "+accountInfo.email);initialized=true;}
I know that the user's auth token is being returned correctly, so I'm not sure where the auth error is coming from.
I'm currently adding dropbox file sharing to an application I'm working on, and I have it setup to get the auth key from the user, and then it stores the auth key in the user registry. Now I'm having issues when trying to get user profile data.
It keeps throwing "System.AggregateException" with the inner Exception of {"No auth method found"} on the line:
"var accountInfo = await client.Core.Accounts.AccountInfoAsync();"
This is the relevant piece of code:
I know that the user's auth token is being returned correctly, so I'm not sure where the auth error is coming from.