zapier的转义字符Zapier中的代码错误

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

我创建了zap并通过zapier运行javascirpt代码,出现以下错误:

We had trouble sending your test through.

> TypeError: Request path contains unescaped characters

这是什么意思?我的代码或输入数据有问题吗?

我的代码是:

fetch(
  "test.s2.com.tr/Musteri/WebForm?_name=" +
    inputData._name +
    "&_email=" +
    inputData._email +
    "&_phone=" +
    inputData._phone +
    "&_source=" +
    inputData._source +
    "&_projeid=59b8d58fcec19d1f"
)
  .then(function(res) {
    return res.json();
  })
  .then(function(json) {
    callback(null, json);
  })
  .catch(callback);
zapier
1个回答
0
投票

您的问题可能是this question的副本。基本上,您在这4个输入之一中包含不属于url的字符。使用encodeURIComponent进行纠正。

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