microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.47k stars 2.44k forks source link

Request for 15 second timeout issue solution #6577

Closed frostymountain closed 4 months ago

frostymountain commented 1 year ago

This is not for asking questions or filing bugs

To get help with an issue with your bot

To file an issue against a component please go to the components repo

Issue

I have a rather complicated bot framework application - it runs different methods and then compares results before returning a response to the user - and I am running into the 15 second timeout issue ("POST to Bot timed out after 15s"). I would like to have a method for extending the timeout, or bypassing the timeout issue altogether.

Proposed change

Provide a method for extending the timeout or provide some sample code that works asynchronously, .i.e. makes asynchronous calls to long running process without throwing an error.

Component Impact

I'm not that familiar with the framework's inner workings, but I believe this would affect ActivityHandler and ITurnContext.

Customer Impact

Having control over the timeout would allow developers to create more complex bots capable of doing more things. Also, more time allows more technologies to be implemented in a bot, such as combining ChatGPT with other technologies. If the customers are willing to wait for a response, why not let them?

Tracking Status

Dotnet SDK [TODO]()

Javascript SDK [TODO]()

Python SDK [TODO]()

Java SDK [TODO]()

Samples [TODO]()

Docs [TODO]()

Tools [TODO]()

tracyboehrer commented 4 months ago

The default timeout will be increased to 30s. However, there are no plans to allow arbitrary control over this. At present, a proactive scenario would be required for long running operations.