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

mitchell.maler's Avatar

mitchell.maler

09 Nov, 2017 05:34 PM

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.&lt;Get&gt;d__301.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>d31.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
  1. Support Staff 1 Posted by Ben Pearce on 10 Nov, 2017 11:09 PM

    Ben Pearce's Avatar

    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

  2. 2 Posted by bob.ready on 15 Nov, 2017 08:57 PM

    bob.ready's Avatar

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

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

  3. 3 Posted by mitchell.maler on 15 Nov, 2017 09:05 PM

    mitchell.maler's Avatar

    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.

  4. mitchell.maler closed this discussion on 15 Nov, 2017 09:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac