为什么 alexa 端点不使用 4000 端口监听我的服务器

why alexa endpoints not listen to my server with 4000 port

你好我是 alexa 技能的新手 development.and 当我将我的服务器 url 添加到侦听 4000 端口的 alexa 端点并测试 it.it 无法与端点通信.虽然,当我通过 url 向浏览器发出获取请求时,它完美地向我发送了响应。

我已尝试将此 url 添加到端点。 https://myprojecturl:4000

app.get('/', function (req, res) {
 console.log(uuid);
 res.status(200).send('Done during the request');
 });

   app.post('/', function (req, res) {
 console.log("in post")
   if (!skill) {
skill = Alexa.SkillBuilders.custom()
  .addRequestHandlers(handlers[0], handlers[1], handlers[2], handlers[3], handlers[4], handlers[5], handlers[6], handlers[7], handlers[8], handlers[9], handlers[10], handlers[11], handlers[12])
  .create();
}

这是我的 server.js 文件中的 get 和 post 方法,其中 运行 和 express.post 方法调用所有由 index.js 文件导出的处理程序

ps:everything runs fine with localhost and ngrok.but create problem with server url

帮助我与 alexa 技能和我的服务器建立通信 url

端口需要在 443。根据我的经验,它不适用于其他端口。