Hello Dane,
I have followed your advice and created a trial cloud version of Octopus. Put a project in it and created a release of it. Created an API key and was able to perform the GET queries but again when trying to execute the PUT request we get an error. This time a different one:
“ErrorMessage”: “Object reference not set to an instance of an object.”
And we have not been able to find out why we get this error.
$ curl --header "X-Octopus-ApiKey: API-Z2DSOZNYBQLULD0SNOBU5THRLB1HY4X6" --header "Content-Type: application/json" -X GET "https://christ.octopus.app/api/Spaces-1/releases/Releases-3"
{
"Id": "Releases-3",
"SpaceId": "Spaces-1",
"ProjectId": "Projects-1",
"Version": "v3",
"ChannelId": "Channels-1",
"ReleaseNotes": null,
"ProjectDeploymentProcessSnapshotId": "deploymentprocess-Projects-1-s-2-5558T",
"IgnoreChannelRules": false,
"BuildInformation": [],
"Assembled": "2023-01-06T14:31:25.455+00:00",
"LibraryVariableSetSnapshotIds": [],
"SelectedPackages": [],
"ProjectVariableSetSnapshotId": "variableset-Projects-1-s-0-PMPJT",
"VersionControlReference": null,
"Links": {
"Self": "/api/Spaces-1/releases/Releases-3",
"Project": "/api/Spaces-1/projects/Projects-1",
"Channel": "/api/Spaces-1/projects/Projects-1/channels/Channels-1",
"Progression": "/api/Spaces-1/releases/Releases-3/progression",
"Deployments": "/api/Spaces-1/releases/Releases-3/deployments{?skip,take}",
"DeploymentTemplate": "/api/Spaces-1/releases/Releases-3/deployments/template",
"Artifacts": "/api/Spaces-1/artifacts?regarding=Releases-3",
"ProjectVariableSnapshot": "/api/Spaces-1/variables/variableset-Projects-1-s-0-PMPJT",
"ProjectDeploymentProcessSnapshot": "/api/Spaces-1/deploymentprocesses/deploymentprocess-Projects-1-s-2-5558T",
"Web": "/app#/Spaces-1/releases/Releases-3",
"SnapshotVariables": "/api/Spaces-1/releases/Releases-3/snapshot-variables",
"Defects": "/api/Spaces-1/releases/Releases-3/defects",
"ReportDefect": "/api/Spaces-1/releases/Releases-3/defects",
"ResolveDefect": "/api/Spaces-1/releases/Releases-3/defects/resolve",
"DeploymentPreviews": "/api/Spaces-1/releases/Releases-3/deployments/previews/",
"Variables": "/api/Spaces-1/projects/Projects-1/releases/Releases-3/variables"
}
}
And then the PUT:
HTTP/2 500
date: Fri, 06 Jan 2023 14:46:17 GMT
content-type: application/json; charset=UTF-8
cache-control: no-cache
expires: -1
pragma: no-cache
server-timing: total;dur=44
content-security-policy: default-src 'none'; connect-src https://octopus.com https://telemetry.octopus.com 'self'; font-src 'self'; img-src data: https://www.gravatar.com 'self'; script-src eval: inline: https://extensions.octopus.com https://octopus.com 'self' 'unsafe-eval' 'unsafe-inline'; style-src inline: 'self' 'unsafe-inline'; worker-src 'self'; block-all-mixed-content; sandbox allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-downloads;
octopus-node: name=octopus-i055766-c6f7ff8f6-x4wsr; version=2022.4.8241
referrer-policy: no-referrer
x-content-type-options: nosniff
x-frame-options: DENY
x-xss-protection: 1; mode=block
x-robots-tag: noindex, nofollow
strict-transport-security: max-age=31536000; includeSubDomains
{
"ErrorMessage": "Object reference not set to an instance of an object."
}
Maybe you can help us here?
Thanks,
Christ