Have been trying to push a package using octo push for URL https://my-hosted-octopus/octopus/api.
But it fails with the following logs
Octopus CLI, version 9.1.3
Detected automation environment: "NoneOrUnknown"
DispatchRequest: GET https://my-hosted-octopus/octopus/api
DispatchRequest: GET https://my-hosted-octopus/octopus/api
DispatchRequest: GET https://my-hosted-octopus/octopus/api
DispatchRequest: GET https://my-hosted-octopus/api/spaces
Exception of type 'Octopus.Client.Exceptions.OctopusResourceNotFoundException' was thrown.
Error from Octopus Server (HTTP 404 NotFound)
Exit code: -7
As you can see, the URL stripped off the context path /octopus in the last DispatchRequest.
We further tried with the plain curl command :
curl -s -X POST https://my-hosted-octopus/octopus/api/Spaces-1/packages/raw -H "accept: application/json" -H "X-Octopus-ApiKey: API-XXXX" -F data=@some-package.zip
It works fine with the curl command but fails with the octo cli push command.