Hi Shane,
Thanks for the quick response. Below is the capture from the failed POST to /api/deployments that returns a 500 response:
POST http://octopus.########.com/api/deployments HTTP/1.1
Host: octopus.########.com
Connection: keep-alive
Content-Length: 253
Accept: application/json
Origin: http://octopus.########.com
X-Octopus-User-Agent: OctopusClient-js/3.13.6
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
X-Octopus-Csrf-Token: fBrHllecpSzTWyDKtQH1aNrp6hnFePLsE2w57MKP%2foSbeT%2b5o1XPPd5udpHJaN2XJND0JBZyGDupp3f4FKwI%2b%2brVpKNefrULTYnetnJNolaEpj8kDzsxEz2wfAG%2bcAKXA4JNLdlll5OmaOjNnMuBMnM%2bORMqQf7fk50%2bBYjAltvUKj0blFA6an4eoEsP1l6eHVxFsHdSml3odziVJCcU3w%3d%3d%7cZa8MgoA69WpTaSQtEhlHzw%3d%3d
Content-type: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-AU,en-US;q=0.8,en;q=0.6
Cookie: ajs_anonymous_id=%221fbb8edb-ff83-42e6-b519-fecfa155266a%22; __qca=P0-1046174889-1483525482534; __ssid=04e3efa2-8146-4844-a157-f1724395d418; __utma=246092379.1532216171.1478815899.1494328296.1494680585.3; __utmz=246092379.1483525482.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=246092379.|1=user-type=prospect=1^2=user-category=designer=1^3=touchpoint=api=1; ajs_group_id=null; ajs_user_id=%22C9C291422E3DE149-98E40C07AD6BBC73%22; _mkto_trk=id:500-BIA-880&token:_mch-########.com-1494328296923-18050; _ga=GA1.2.1532216171.1478815899; OctopusIdentificationToken_64d81824-c1b3-4eb2-a663-c5b4021a2206=2w%2bPDoa0iohdrAySFrbJzgKGxxPTj9Jx%2bxcKAEkgCYxTiwQ754Vssbk%2bC7IdhzszTo%2fXxTdCzXIKWvsR6tO2ZwLzG5hSVeKjUO%2brkIVQf%2ftmFAcJdJrdG7mYIfdz47rJsyil6s4rnGz6fywMaCKteF8briIGRnJyUmUJzawpIzJxV5OB76QOggME5vJ3qfLrflPmWQ%2fXLwSf9bKHSMn07A%3d%3d%7c6Ii1y5d98ovdsdw6So3krQ%3d%3d; Octopus-Csrf-Token_64d81824-c1b3-4eb2-a663-c5b4021a2206=fBrHllecpSzTWyDKtQH1aNrp6hnFePLsE2w57MKP%2foSbeT%2b5o1XPPd5udpHJaN2XJND0JBZyGDupp3f4FKwI%2b%2brVpKNefrULTYnetnJNolaEpj8kDzsxEz2wfAG%2bcAKXA4JNLdlll5OmaOjNnMuBMnM%2bORMqQf7fk50%2bBYjAltvUKj0blFA6an4eoEsP1l6eHVxFsHdSml3odziVJCcU3w%3d%3d%7cZa8MgoA69WpTaSQtEhlHzw%3d%3d
{
"ReleaseId":"Releases-1673",
"EnvironmentId":"Environments-1",
"TenantId":null,
"SkipActions":[
],
"QueueTime":null,
"QueueTimeExpiry":null,
"FormValues":{
},
"ForcePackageDownload":false,
"UseGuidedFailure":false,
"SpecificMachineIds":[
],
"ExcludedMachineIds":[
]
}
and then despite the displayed error, if I still proceed to click “Deploy now”, the subsequent call to /api/deployments succeeds with a 201 response, and here is that request, which looks pretty darn similar:
POST http://octopus.########.com/api/deployments HTTP/1.1
Host: octopus.########.com
Connection: keep-alive
Content-Length: 253
Accept: application/json
Origin: http://octopus.########.com
X-Octopus-User-Agent: OctopusClient-js/3.13.6
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
X-Octopus-Csrf-Token: fBrHllecpSzTWyDKtQH1aNrp6hnFePLsE2w57MKP%2foSbeT%2b5o1XPPd5udpHJaN2XJND0JBZyGDupp3f4FKwI%2b%2brVpKNefrULTYnetnJNolaEpj8kDzsxEz2wfAG%2bcAKXA4JNLdlll5OmaOjNnMuBMnM%2bORMqQf7fk50%2bBYjAltvUKj0blFA6an4eoEsP1l6eHVxFsHdSml3odziVJCcU3w%3d%3d%7cZa8MgoA69WpTaSQtEhlHzw%3d%3d
Content-type: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-AU,en-US;q=0.8,en;q=0.6
Cookie: ajs_anonymous_id=%221fbb8edb-ff83-42e6-b519-fecfa155266a%22; __qca=P0-1046174889-1483525482534; __ssid=04e3efa2-8146-4844-a157-f1724395d418; __utma=246092379.1532216171.1478815899.1494328296.1494680585.3; __utmz=246092379.1483525482.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=246092379.|1=user-type=prospect=1^2=user-category=designer=1^3=touchpoint=api=1; ajs_group_id=null; ajs_user_id=%22C9C291422E3DE149-98E40C07AD6BBC73%22; _mkto_trk=id:500-BIA-880&token:_mch-########.com-1494328296923-18050; _ga=GA1.2.1532216171.1478815899; OctopusIdentificationToken_64d81824-c1b3-4eb2-a663-c5b4021a2206=2w%2bPDoa0iohdrAySFrbJzgKGxxPTj9Jx%2bxcKAEkgCYxTiwQ754Vssbk%2bC7IdhzszTo%2fXxTdCzXIKWvsR6tO2ZwLzG5hSVeKjUO%2brkIVQf%2ftmFAcJdJrdG7mYIfdz47rJsyil6s4rnGz6fywMaCKteF8briIGRnJyUmUJzawpIzJxV5OB76QOggME5vJ3qfLrflPmWQ%2fXLwSf9bKHSMn07A%3d%3d%7c6Ii1y5d98ovdsdw6So3krQ%3d%3d; Octopus-Csrf-Token_64d81824-c1b3-4eb2-a663-c5b4021a2206=fBrHllecpSzTWyDKtQH1aNrp6hnFePLsE2w57MKP%2foSbeT%2b5o1XPPd5udpHJaN2XJND0JBZyGDupp3f4FKwI%2b%2brVpKNefrULTYnetnJNolaEpj8kDzsxEz2wfAG%2bcAKXA4JNLdlll5OmaOjNnMuBMnM%2bORMqQf7fk50%2bBYjAltvUKj0blFA6an4eoEsP1l6eHVxFsHdSml3odziVJCcU3w%3d%3d%7cZa8MgoA69WpTaSQtEhlHzw%3d%3d
{
"ReleaseId":"Releases-1673",
"EnvironmentId":"Environments-1",
"TenantId":null,
"SkipActions":[
],
"QueueTime":null,
"QueueTimeExpiry":null,
"FormValues":{
},
"ForcePackageDownload":false,
"UseGuidedFailure":false,
"SpecificMachineIds":[
],
"ExcludedMachineIds":[
]
}
and here is the successful response:
HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
Location: /api/deployments/Deployments-1733
Server: Octopus Deploy/ Microsoft-HTTPAPI/2.0
X-UA-Compatible: IE=edge
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'none'; connect-src 'self'; font-src 'self'; img-src data: https://www.gravatar.com 'self'; script-src eval: inline: '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;
Referrer-Policy: no-referrer
Date: Mon, 29 May 2017 12:21:28 GMT
Content-Length: 1291
{
"Id": "Deployments-1733",
"ReleaseId": "Releases-1673",
"EnvironmentId": "Environments-1",
"TenantId": null,
"ForcePackageDownload": false,
"ForcePackageRedeployment": false,
"SkipActions": [],
"SpecificMachineIds": [],
"ExcludedMachineIds": [],
"DeploymentProcessId": "deploymentprocess-Projects-21-s-62-P7NLK",
"ManifestVariableSetId": "variableset-Deployments-1733",
"TaskId": "ServerTasks-4201",
"ProjectId": "Projects-21",
"ChannelId": "Channels-21",
"UseGuidedFailure": false,
"Comments": null,
"FormValues": {},
"QueueTime": null,
"QueueTimeExpiry": null,
"Name": "Deploy to #######",
"Created": "2017-05-29T12:21:29.136+00:00",
"LastModifiedOn": "2017-05-29T12:21:29.171+00:00",
"LastModifiedBy": "Craig",
"Links": {
"Self": "/api/deployments/Deployments-1733",
"Release": "/api/releases/Releases-1673",
"Environment": "/api/environments/Environments-1",
"Project": "/api/projects/Projects-21",
"Task": "/api/tasks/ServerTasks-4201",
"Web": "/app#/deployments/Deployments-1733",
"Artifacts": "/api/artifacts?regarding=Deployments-1733",
"Interruptions": "/api/interruptions?regarding=Deployments-1733",
"Variables": "/api/variables/variableset-Deployments-1733"
}
}
From what I can tell the pattern seems to be every alternate call to “Deploy now” whether straight after “Create Release” or after “Try Again” following a failed deployment.
Hope this helps.
Thanks,
Craig.