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
I am noticing an issue with receiving a response which causes the application to hang. This is happening randomly. With the Rest API I notice this happening in two different scenarios.
a. This happens when waiting for a response for a new access token. This might be related to a deadlock issue with the context. HttpHelper.cs : await client.PostAsync(oauthTokenEndPoint, new FormUrlEncodedContent(post));
b. It also happens when I try to retrieve a folder. It only happens here if I already have a valid access token and don’t need to get a new one. In this scenario the application doesn’t hang, but it fails to retrieve the folder, causing the folder object to be null. var folder = vaultApi.Folders.GetFolderByPath(folderPath);
Again, this is happening randomly; so sometimes it works. I’m not sure what is causing this, but I think it might have something to do with the Rest API failing to receive a json response.
The text was updated successfully, but these errors were encountered:
and create a new method in the VaultApi class... private async Task GetAccessToken(string oauthTokenEndPoint, string apiKey, string apiSecret) { return await HttpHelper.GetAccessToken(oauthTokenEndPoint, apiKey, apiSecret); }
I am noticing an issue with receiving a response which causes the application to hang. This is happening randomly. With the Rest API I notice this happening in two different scenarios.
a. This happens when waiting for a response for a new access token. This might be related to a deadlock issue with the context.
HttpHelper.cs : await client.PostAsync(oauthTokenEndPoint, new FormUrlEncodedContent(post));
b. It also happens when I try to retrieve a folder. It only happens here if I already have a valid access token and don’t need to get a new one. In this scenario the application doesn’t hang, but it fails to retrieve the folder, causing the folder object to be null.
var folder = vaultApi.Folders.GetFolderByPath(folderPath);
Again, this is happening randomly; so sometimes it works. I’m not sure what is causing this, but I think it might have something to do with the Rest API failing to receive a json response.
The text was updated successfully, but these errors were encountered: