Messenger webhook错误(curl_errno = 28) [英] Messenger webhook error (curl_errno = 28)

查看:633
本文介绍了Messenger webhook错误(curl_errno = 28)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的node.js代码

Here's my node.js codes

var fs = require("fs"),
    https = require("https"),
    express = require("express"),
    app = express();

https.createServer({
    ca: fs.readFileSync("sslcert/cpanel.ca"),
    key: fs.readFileSync("sslcert/cpanel.key"),
    cert: fs.readFileSync("sslcert/cpanel.crt"),
}, app).listen(444, function() {
    console.log("I'm working :)");
});

app.get("/webhook/", function(req, res) {
    if (req.query["hub.verify_token"] === "token") {
        res.send(req.query["hub.challenge"]);
    } else {
        res.send("Error, wrong validation token");
    }
});

我总是在Facebook的新页面订阅页面上收到此错误。

And I'm always getting this error on Facebook's "New Page Subscription" page.

The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 28; curl_error = Operation timed out after 0 milliseconds with 0 out of 0 bytes received; HTTP Message = Unknown Response Code

我的代码有什么问题?

推荐答案

https:// host:port / 不可访问。确保URL可以从您的防火墙外部访问。

This error occurs when https://host:port/ is not accessible. Make sure the URL is accessible from outside of your firewall.

这篇关于Messenger webhook错误(curl_errno = 28)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆