I've been trying to use a webhook to export a file to a URL with the Exporter.send method. The exports have been successful, as they've been coming to my email. However, I'm using a webhook service online and it is not registering any pings to the URL even though the exports are being sent to my email.
Here's the code I used, basically pulled straight from the documentation.
dronedeployApi.Exporter.send({
layer: 'NDVI Toolbox',
email: emails,
file_format: 'geotiff',
merge: mergeCheckbox.checked ? true : false,
projection: projectionValue.value,
resolution: resolutionValue.value === 0 ? 'native' : resolutionValue.value,
webhook: {
url: 'http://webhook.site/3d10872c-a56e-4b2b-aa3b-b8c0334e8f5f'
}
})
.then(function(exportId) {
dronedeployApi.Messaging.showToast('NDVI export successful!', {
timeout: -1
});
},
function(error) {
dronedeployApi.Messaging.showToast(error, {
timeout: -1
});
}
);
Thoughts on what might be going wrong? Thanks!
( I am an Engineer and DroneDeploy ) The code looks fine, I am going to create a barebones app here that does exports in the next few hours. Expect a response from me soon.
-- Edit. I have confirmed that I receive export webhooks. Without knowing the actual url you used or the situation with your webserver, I cannot confirm what your specific problem may be.
However, Dronedeploy was experiencing issues throughout the day, leading to intermittent instability. I would recommend trying again.
If you continue to have trouble, we can do a more private conversation, regarding your implementation.