Error when trying to create release through API with octo.exe

I’m getting a 500 error when trying to create a release with the API:
The error is below, but not especially helpful.

I debugged though the octo.exe and it is failing at the point of creating the release. (the get latest package and other supporting code is working.)

This was working fine for a day or two. I’m not sure what changed. I did upgrade to the latest version of Octopus, and I don’t know for sure if that was when it started failing.

Thanks,
Lynn

C:\Dev\ISS4\Modules\Trunk>build\tools\octopus\octopustools\octo.exe create-release --server=http://wrangler --project=Solana.WebApplications --version=4.43.7045.1
Octopus Command Line Tool, version 1.0.0.0

Handshaking with Octopus server: http://wrangler/api
Handshake successful. Octopus version: 0.9.620.3
Searching for project 'Solana.WebApplications’
Found project: Solana.WebApplications [1]
Getting project steps…
Found 1 steps
Getting latest version of package: Solana.WebApplications
Latest available version of package ‘Solana.WebApplications’ is '4.43.7045.2’
Creating release: 4.43.7045.1
The remote server returned an error: (500) Internal Server Error.

500 - Internal server error.

Server Error

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
–>

Server Error

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Cross reference http://help.octopusdeploy.com/discussions/problems/194-octoexe-fails-to-create-release-on-octopus-096203 which mysteriously isn’t showing up in the index.

Chris,
I get “That discussion is awaiting moderation.” when I hit that link – which would probably explain why it isn’t in the index.

+1 I’m getting the same error when I try to use the Octopus-Tool

The bug appears to be when trying to POST the “Json Data” object to the server using the following path:
/Api/Projects//Release

because when I try to manually POST the Json Data object through AJAX, I get the same error.

Must have been introduced in the latest release.

Hi,

Sorry for not replying to this thread earlier, and thanks for reporting the issue. You are right, this was a breaking change to the API that was introduced in the last release. A new build of Octopus is available here:

To make use of it you will also need a new version of Octo.exe:

Hope that helps,

Paul

Thanks for the fix.