none
Microsoft Bot framework - How to set the connection port RRS feed

  • Question

  • Hello! 

    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:

    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)

    or

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

    or

    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)

    and so on.

    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?

    Thanks.


    Wednesday, April 17, 2019 11:32 AM

All replies

  • 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.  


    Tuesday, May 7, 2019 6:14 PM
    Moderator