Closed Batta32 closed 4 years ago
This is by design. We don't explicitly eat errors. You should implement onTurnError
as you stated to catch exceptions raised while processing an activity and for exceptions that occur outside of a message flow you should add your own try/catch
around setup calls or use process.on('uncaughtException')
Thanks @Stevenic, I'll close this issue as you mentioned it's by design.
We implemented the onTurnError
handler in the TypeScript Skill of botframework-solutions#2900 to handle all the uncaught exceptions.
Versions
What package version of the SDK are you using. botbuilder-core@4.7.0
What nodejs version are you using nodejs@10.8.0
What browser version are you using -
What os are you using Windows 7
Describe the bug
Give a clear and concise description of what the bug is. Having a Firewall configured in a deployed resource (e.g.
Cosmos DB
), the execution flow is stopped due to a Uncaught Exception when the bot is trying to reach to the resource. It would be helpful to manage these kind of unhandled exceptions.To Reproduce
Steps to reproduce the behavior: Using a Skill in TypeScript from botframework-solutions repository.
appId
,appPassword
,luisAuthoringKey
andluisAuthoringRegion
CosmosDB
resource ->Firewall and virtual networks
Allow access from: Selected networks
, and configure a random IP in the firewall section in order to reproduce the 403 error when trying to access the resourcenpm install
launch.json
for debuggingDebugging
options, selectAll Exceptions
Bot Framework Emulator
appId
and theappPassword
valuesrun sample dialog
)Expected behavior
Give a clear and concise description of what you expected to happen. The
Uncaught Exceptions
should be correctly handled in the Promises.Screenshots
If applicable, add screenshots to help explain your problem. -
Additional context
Add any other context about the problem here. In addition to this, we implemented the
onTurnError
handler in the Skill to handle all the uncaught exceptions - botframework-solutions#2900[bug]