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

UpdateVariableGroupAsync is still a problem with the C# sdk. It is broken in latest stable and latest preview. #572

Closed
chassq opened this issue Oct 12, 2023 · 5 comments

Comments

@chassq
Copy link

chassq commented Oct 12, 2023

This is still a problem with the C# sdk. It is broken in latest stable and latest preview. The allowed call is (no name param is available to pass):

await client.UpdateVariableGroupAsync(variableGroup.Id, variableParams, cancellationToken: cancellationToken);

The error is:

Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Project information name is not valid for variable group.
 ---> System.ArgumentException: Project information name is not valid for variable group.
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpMethod method, IEnumerable`1 additionalHeaders, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable`1 queryParameters, Object userState, CancellationToken cancellationToken)
   at Atmc.IaC.CLI.Services.DevOps.DevOpsVariableGroupService.ListVariableGroup(CancellationToken cancellationToken) in Services\DevOps\DevOpsVariableGroupService.cs:line 86
   at Atmc.IaC.CLI.ProgramProcess.Process(IArgParserOptions argOptions, CancellationToken cancellationToken) in ProgramProcess.cs:line 78
   at Atmc.IaC.CLI.Program.Main(String[] args) in Atmc.IaC\Atmc.IaC\CLI\Program.cs:line 33

Originally posted by @chassq in #424 (comment)

@chassq chassq changed the title This is still a problem with the C# sdk. It is broken in latest stable and latest preview. The allowed call is (no name param is available to pass): UpdateVariableGroupAsync is still a problem with the C# sdk. It is broken in latest stable and latest preview. Oct 13, 2023
@kirill-ivlev
Copy link
Contributor

Hi @chassq,
thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

@chassq
Copy link
Author

chassq commented Oct 14, 2023

@kirill-ivlev Thanks for the update! Much appreciated. Hope this is resolved soon as it is blocking us a bit. As a workaround we have reverted to the REST api for now.

Copy link

This issue has had no activity in 90 days. Please comment if it is not actually stale

@github-actions github-actions bot added the stale label Jan 12, 2024
@chassq
Copy link
Author

chassq commented Jan 12, 2024

Any update on when this might be consdiered?

@github-actions github-actions bot removed the stale label Jan 12, 2024
Copy link

This issue has had no activity in 90 days. Please comment if it is not actually stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants