Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling BearerTokenConnection.GetAuthenticatedApiClient hangs #115

Open
ajmaley95 opened this issue Jan 3, 2022 · 2 comments
Open

Calling BearerTokenConnection.GetAuthenticatedApiClient hangs #115

ajmaley95 opened this issue Jan 3, 2022 · 2 comments
Assignees

Comments

@ajmaley95
Copy link

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);

@ajmaley95
Copy link
Author

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.

@rekolobov
Copy link
Member

rekolobov commented Jan 26, 2022

@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

@rekolobov rekolobov self-assigned this Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants