我已经启动并运行了一个机器人,大多数时候它工作得还不错,但Twilio在每个入站短信上抛出了大约500和。
An attempt to retrieve content from https://sms.botframework.com/api/sms returned the HTTP status code 500.
或
An attempt to retrieve content from https://sms.botframework.com/api/sms returned the HTTP status code 502.
502请求继续正常并且响应被发送,但是500没有--用户
我编写了一个html页面,用户在其中注册(数据文件在json中),我可以保存他/她的名字和性别。我将它们作为参数传递到机器人所在的请求的url中。
var xhr = new XMLHttpRequest();
function processRequest(e) {
var url;
if (xhr.readyState == 4 && xhr.status == 200) {
var response = JSON.parse(xhr.responseText);
url = "https: