Pipedream での Outlook Node.js sendMail API 要求の Message is empty エラー
この node.js リクエストを Pipedream 経由で送信しています.
そして、このエラーが発生します.どうすれば解決できますか?:
この問題を解決するにはどうすればよいですか?私はコーディングが初めてで、パイプドリームでワークフローを自動化しようとしています.
async(event, steps, auths) => {
return await require("@pipedreamhq/platform").axios(this, {
"url": `https://graph.microsoft.com/v1.0/me/sendMail`,
"headers": {
"Authorization": `Bearer ${auths.microsoft_outlook.oauth_access_token}`,
"Content-Type": 'application/json'
},
"method": 'POST',
"message": {
"subject": 'Hey there, your whatbuylists product details are attached',
"body": `Thank you for your purchase of this whatbuylists product list. The details of the list are available here: ${steps.get_product.$return_value.metadata.successURL}`,
"toRecipients": `${steps.trigger.event.data.object.customer_details.email}`
}
}
)
}
そして、このエラーが発生します.どうすれば解決できますか?:
{
"error": {
"code": "ErrorInvalidParameter",
"message": "The value of the parameter 'Message' is empty."
}
}
at null.createError (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:387:35)
at null.endReadableNT (internal/streams/readable.js:1317:12)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)
この問題を解決するにはどうすればよいですか?私はコーディングが初めてで、パイプドリームでワークフローを自動化しようとしています.
Reference
この問題について(Pipedream での Outlook Node.js sendMail API 要求の Message is empty エラー), 我々は、より多くの情報をここで見つけました https://dev.to/whatbuylists/message-is-empty-error-on-outlook-node-js-sendmail-api-request-on-pipedream-3plaテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol