Skip to content

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

@HuyPhanNguyen

Description

@HuyPhanNguyen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions