go-octopusdeploy icon indicating copy to clipboard operation
go-octopusdeploy copied to clipboard

[BUG] Go client returns an empty result when calling Root.Get()

Open HuyPhanNguyen opened this issue 10 months ago • 1 comments

Description When calling Root.Get() in the Go client library, the resulting RootResource is blank. This occurs because the RootService is incorrectly calling an endpoint like http://localhost/api/Spaces-1 when it should be calling http://localhost/api.

Steps To Reproduce Provide a detailed list of steps that reproduce the issue.

  • Use the Go client library
  • Call the Root.Get() function
  • Observe that the returned RootResource is empty/blank

Expected Behavior The Root.Get() function should return a properly populated RootResource object with all the expected data from the root API endpoint.

Environment and/or Versions

  • Octopus Server Version: Latest
  • Go Version ($ go version): Not specified

Additional Context Internal ticket sc-103873

HuyPhanNguyen avatar Feb 21 '25 02:02 HuyPhanNguyen