linvi / tweetinvi

Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
MIT License
1.01k stars 220 forks source link

GetAuthenticatedUserAsync doesn't return any response #1151

Open benjamimpitacho opened 2 years ago

benjamimpitacho commented 2 years ago

Hello,

I have a strange behaviour from Tweetinvi library.

In a moment, I can authorize my application (.Net MVC website) though Twitter authentication process and get user token and token secret. I store these two parameters.

Later, to perform some kind of operation with an authenticated user, I create a user client:

var userClient = new TwitterClient(consumerKey, consumerSecret, token, tokenSecret);

and after that, I perform some action, for example, get information about the user: var user = await userClient.Users.GetAuthenticatedUserAsync();

On this last line, I don't get any response from library, neither an exception...why this behaviour? Doesn anyone else faced this behaviour?

EDIT 1: I can run that line with success on authentication process (URL redirect auth), but even if I save the userClient and use it later in my website, the behaviour is the same...so, why using the same client on the auth process works and after that, doesn't?!

EDIT 2: This behaviour is common across other async operations, not only for GetAuthenticatedUserAsync.

Thanks for your help.