Microsoft Bot框架 - 如何设置连接端口

问题描述:

您好! 

我在使用Bot框架监听Linux服务器时遇到了一些问题。它似乎在建立连接时需要一个端口,但如果重新启动应用程序则不一样。更确切地说,我得到的例外情况如下:

I am having some issues using the Bot framework listening on a Linux server. It seems that it requires a port when the connection is established, but is not the same if the application is restarted. More precisely, the exception I get is as follow:

引起:java.net.ConnectException:无法连接到localhost / 0:0:0:0:0:0:0 :1:61718

       在okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:189)

Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:61718
        at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:189)

引起:java.net.ConnectException:无法连接到localhost / 0:0:0:0:0:0:0:1:61718

       在okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:189)

Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:61718
        at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:189)

等等。

打开一个端口不会有问题,只是总是相同 - 最好是可配置的。在本地测试机器人时,在Windows开发环境下,不会发生错误,一切正常。只有它发生在生产服务器上,
主要基于Linux。

It would not be a problem to open a port, just to always be the same - preferably configurable. When the bot is tested locally, under a Windows development environment, the error does not occur, all is working fine. Only it happens in production servers, mainly Linux based.

有没有办法解决这个问题?

Is there any way to fix this?

谢谢。


为此延迟道歉!您是否在Linux上将Bot Framework部署到Azure上,如

此博客
或在本地Linux服务器上配置? 
您可以结账

调试机器人
以获取更多详细信息。

您已在Azure App Service Mobile Apps论坛上发布了该问题,该论坛专门针对Azure App Service Mobile Apps相关查询,但是对于Bot Framework问题的专业帮助,您可以发布您的查询
SO ,您将收到来自合适的专家的见解。查看文档以获取其他支持选项:
Bot Framework附加资源,k
indly
如果您有任何进一步的帮助,请告诉我们。
 

Apologies for the delay here! Are you Deploying Bot Framework to an Azure on Linux as mentioned in this blog or provisioning on On-prem Linux servers? You may checkout Debug a bot for more details.
You have posted the question on Azure App Service Mobile Apps forum, which is dedicated for Azure App Service Mobile Apps related queries, however for a specialized assistance on Bot Framework issue, you may post your query on SO, where you will receive insights from the right set of experts. Checkout the document for additional support options: Bot Framework additional resources, k
indly please do let us know if you have any further assistance.