I am trying to post an image to a Pinterest board via a webhook (Maker service), but every time I try I get a success response, but in IFTTT on actions, I see a Applet failed: There was a problem with the Pinterest service message. What can be wrong? The images I try to post are hosted on my own server.
function pinterest_post(image, description, boards) {
request({
url: 'https://maker.ifttt.com/trigger/pinterest_post/with/key/*******-***********-*',
method: 'POST',
json: {
"value1": boards,
"value2": image,
"value3": description
}
}, function (error, response) {
if (error) {
console.log('Error sending message: ', error);
} else if (response.body.error) {
console.log('Error: ', response.body.error);
} else {
console.log(response);
}
});
}