Octo.exe Error: System.ArgumentException: template is null

Hello,

I am trying to test out using the Octo.exe CLI and every time I try to create a release “create-release” everything looks fine then it throws an error shown below. I tried looking online for help and couldn’t find anything similar. I was able to create a release on the Octopus Deploy Website.

λ  Octo.exe create-release --server=url --apiKey=key --project="Test Project"
Octopus Deploy Command Line Tool, version 4.24.4

Handshaking with Octopus server: omitted
Handshake successful. Octopus version: 3.8.1; API version: 3.0.0
Authenticated as: Maler,Mitchell
This Octopus Server supports channels
Finding project: Test Project
Automatically selecting the best channel for this release...
Building a release plan for Channel 'Default'...
Finding deployment process...
Finding release template...
Selected the release plan for Channel 'Default' - it is a perfect match
Using version number from release template: 0.0.2
Release plan for Test Project 0.0.2
Channel: 'Default' (this is the default channel)

Creating release...

System.ArgumentException: template is null
   at Octopus.Client.UrlTemplate.Resolve()
   at Octopus.Client.UrlTemplate.Resolve(String templateSpec, IDictionary`2 parameters)
   at Octopus.Client.UrlTemplate.Resolve(String templateSpec, Object parameters)
   at Octopus.Client.OctopusAsyncClient.QualifyUri(String path, Object parameters)
   at Octopus.Client.OctopusAsyncClient.<Get>d__30`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Octopus.Client.OctopusAsyncClient.<Create>d__39`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Octopus.Cli.Commands.CreateReleaseCommand.<Execute>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Octopus.Cli.Commands.ApiCommand.<Execute>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Octopus.Cli.Program.Run(String[] args)
Exit code: -3

Hi Mitchell,

Thanks for getting in touch. Sorry you are having issues with the tools.

To be able to diagnose the problem can you please provide me with a copy of the data available via url http://youroctopusserver/api. You can also find this document by opening the Chrome Dev Tools and finding the API request.
The error you are seeing seems to be related to the URL provided by this document under the Links section, named Releases.

Regards
Ben

Just had this issue, it was pretty simple in our case.

URL was mistakenly entered as http:// when it should have been https://

I was able to get this working. I am not sure what I was doing wrong last week but now it seems to work fine.