System Information (Required)
- SDK Language: .NET
- SDK Version: 3.8.4
- Development Environment: Azure App Service and DirectLine
Bot Info
-
Bot name: ProgMngmentBotPOC
-
Bot handle: progmntbotpoc
-
App ID: bbc75279-a183-4bb3-a148-b9faee0bcac9
-
Connected channels: Directline
Issue Description
I have hosted my chatbot inside a webapp via DirectLine. Whenever I am trying to run two different instance of this webapp on same or different browser I get "Sorry my bot code has a issue".
It happens only when I try to send messages to both the bots at the same time. I also have noticed that the error message appears on the bot which was 2nd in sending the request.
For Eg : BotA and BotB running at the same time. I send message to BotA and quickly send a message to BotB. Both will process the request and display the result, but "Sorry my bot code has a issue" will appear only on 'BotB' sent after BotA.
There is no way I can debug this exception. It does not appear in any of the catch blocks in bot. The only log we have is the following :
directline.botframework.com/v3/directline/conversations/A9pzYz8BfNfHl2hXTLdyon/activities:1 POST https://directline.botframework.com/v3/directline/conversations/A9pzYz8BfNfHl2hXTLdyon/activities 502 (Bad Gateway)
{error: {code: "ServiceError", message: "Failed to send activity: bot returned an error"}}
error:{code: "ServiceError", message: "Failed to send activity: bot returned an error"}
code:"ServiceError"
message:"Failed to send activity: bot returned an error"
The bot dashboard reports the error as There was an error sending this message to your bot: HTTP status code InternalServerError
Its very difficult to figure out the reason based on these few error messages.
What could be the reason for this error? Any way where I can debug this internal error message "Sorry my bot code has an issue" and get the full stacktrace?
Any help or pointers will be highly appreciated.
Steps to Reproduce the Issue
1.Run the web app in two different instance and send the message at the same time to the bot.
2. It throws "Sorry my bot code has an issue" message in second bot.
3.The execution of the bot continues smoothless despite the error message.
Expected Behavior
Smooth execution without "Sorry my bot code has an issue" message.
Actual Results

