Zapier新UI问题

问题描述 投票:0回答:1

在新的Zapier UI中,我曾经在下面做过..

return z.request(options).then(response => {
  response.throwForStatus();
  const results = z.JSON.parse(response.content);
  let attachmentArray = [];
  attachmentArray = results.data.map(function(result) {
    let attachment = {};
    attachment.id = result.attachment_id;
    let file_url = options.url + `/${attachment.id}`;
    attachment.url = file_url;
    attachment.file = z.dehydrateFile(file_url, {
      method: "GET",
      headers: { Authorization: `Bearer ${bundle.authData.access_token}` }
    });
    return attachment;
  });
  return attachmentArray;
});

这是我提供触发器的代码。目前,它抛出

Error: You must pass in a function/array/object. We got string instead.

zapier
1个回答
0
投票

大卫来自Zapier平台团队。该错误来自this line,它负责在您的根App对象上查找方法。我们实际上得到了一个覆盖确切情况here的测试。

违规代码似乎不在您上面提供的示例中,但请查看您调用dehydrate('some str')appTester('some string')的任何地方

© www.soinside.com 2019 - 2024. All rights reserved.