Search code examples
azurebotframeworkdirect-line-botframework

POST to Bot timed out after 15s


Sometimes I am getting timeout error from my bot. Getting timeout for the first response itself.

Is there any option to increase that 15 seconds time?

Also, is there any option to skip this timeout issue?

Exception type : Microsoft.Bot.Schema.BotTimeoutException
Failed method : Microsoft.Bot.ChannelConnector.BotAPI+d__31.MoveNext

It is bot using C# and directlinechannel.

Please let me know if you need any other information


Solution

  • This is a problem in the Bot Framework, the direct line connection will timeout in 15s and currently there is no way to suppress it, check the following thread.

    https://github.com/microsoft/botframework-sdk/issues/3220

    this type of enforcement to make the bot more active and force to make faster bots.

    same goes for Google's Dialog flow which timeouts at 5 seconds and Alexa Skill which timeouts at 8 seconds, so 15 second for Bot Framework is generous :P