Error converting value "CalamariNeedsUpgrade" to type 'Octopus.Client.Model.MachineModelStatus'

I have recently upgraded from 3.2.15 to 3.3.14 and now, when I call octo.exe promote-release I get the attached exception (Newtonsoft.Json.JsonSerializationException: Error converting value “CalamariNeedsUpgrade” to type ‘Octopus.Client.Model.MachineModelStatus’) and the operation fails. Can you please indicate how I might be able to correct this?

The problem in this case was that the version of the command line utility (octo.exe) was out of sync with the version of octopus server installed. Copying the latest version of octo.exe to the target server solved the problem.