This topic was automatically generated from Slack. You can find the original thread here.
Hey team,
While executing the below code I am getting the following error. Please help to fix this.
code
async (params, auths) => {
const data = {
channel: params.channel,
text: params.text,
as_user: params.as_user,
attachments: params.attachments,
blocks: params.blocks,
icon_emoji: params.icon_emoji,
icon_url: params.icon_url,
link_names: params.link_names,
mrkdwn: params.mrkdwn,
parse: params.parse,
reply_broadcast: params.reply_broadcast,
thread_ts: params.thread_ts,
unfurl_links: params.unfurl_links,
unfurl_media: params.unfurl_media,
username: params.username,
}
const config = {
method: "post",
url: `https://slack.com/api/chat.postMessage`,
headers: {
Authorization: `Bearer ${auths.slack.oauth_access_token}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)
}
Error
TypeError
Cannot read properties of undefined (reading ‘bind’)