Describe the issue:
- Please include any relevant error messages, screenshots, and troubleshooting youâve already tried.
Hello!
I have a Build Trigger created from the Project Settings Development Tools. It is setup to hit a custom webapi (aws lambda). The lambda includes a post request to update DatoCMS with the status of the publishing operation to the uri the ui provides. This post requests returns a status of 204 and the lambda runs and finishes correctly just as it should.
Problem is, the trigger never finishes in the DatoCMS project dashboard. Build status never changes from âBuild in progressâŚâ to anything else. With the only option being to click âAbort and mark as failedâ.
(Optional) Can you provide a link to the item, model, or project in question?
- If youâre concerned about privacy, you can also email us at support@datocms.com.
The projectId is 106829
(Optional) Do you have any sample code you can provide?
- A minimal reproducible example would be best, but anything you can provide (a snippet, public repo, etc.) would be helpful.
await axios
.post(
'uri',
{ status: 'success' },
{
headers: { 'Content-Type': 'application/json' },
}
)
.then(response => {
console.log('Alerted datoCMS of success', response)
})
.catch(error => {
console.error('failed to alert datoCMS', error)
})