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
Expecting GetAuthenticatedApiClient to return a YouTrackClient object
Actual behavior
GetAuthenticatedApiClient call never returns
Steps to reproduce the behavior
Call GetAuthenticatedApiClient. Tried the following:
var _newClient = _connection.GetAuthenticatedApiClient().Result;
var _newClient = await _connection.GetAuthenticatedApiClient();
var _newClient = await _connection.GetAuthenticatedApiClient().ConfigureAwait(false);
The text was updated successfully, but these errors were encountered:
FYI, to resolve this issue, we had to add .ConfigureAwait(false) calls to the awaitable async methods in GetAuthenticatedApiClient. We'd prefer not to have a copied/modified version of the YouTrackSharp project in our code base though.
@ajmaley95
Hi, please accept my apologies for not responding earlier
I was able to reproduce similar behavior only during youtrack server startup in very specific cases
Otherwise I can't see why this could happen, though I might be not handling some setups properly
Could you please elaborate on how you are using the API or some specifics of your installation? If there is some sensitive data involved, you could create a support ticket via this form
Expected behavior
Expecting GetAuthenticatedApiClient to return a YouTrackClient object
Actual behavior
GetAuthenticatedApiClient call never returns
Steps to reproduce the behavior
Call GetAuthenticatedApiClient. Tried the following:
var _newClient = _connection.GetAuthenticatedApiClient().Result;
var _newClient = await _connection.GetAuthenticatedApiClient();
var _newClient = await _connection.GetAuthenticatedApiClient().ConfigureAwait(false);
The text was updated successfully, but these errors were encountered: