I am trying to setup Octopus with Azure DevOps but not able to understand what might be the issue here as the error message is not very clear.
When I run the command locally it works fine but the same command fails in the Build Agent in Azure Devops
dotnet-octo --list-projects --server http://octopusservername/ --apiKey=API-KeyName
This command works fine when executed from local system.
However when I run the command as part of my Build step I see the following error:
Unable to process response from server: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0… Response content:
2020-02-18T20:29:18.4218519Z Error from Octopus server (HTTP 200 OK)
2020-02-18T20:29:18.4218551Z Exit code: -7
2020-02-18T20:29:18.5060223Z ##[error]Cmd.exe exited with code ‘-7’.
2020-02-18T20:29:18.5368013Z ##[section]Finishing: CmdLine