【发布时间】:2020-02-19 17:19:24
【问题描述】:
我通过 zapier 创建了我的 zap 并运行 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);
【问题讨论】:
-
您可以发布您的任何代码吗?即,您尝试请求的网址?
-
是的,我可以发布我的代码,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