Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

octo push doesn't work and return exit code -7 for URL https://my-hosted-octopus/octopus/api #245

@gitsidgo

Description

@gitsidgo

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.

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