There was an error sending this message to your bot: HTTP status code InternalServerError
See original GitHub issue
Hi,
I have created Bots in BotFramework portal and have linked up with BotBuilderSDK and have enabled channels like DirectLine, WebChat. It was working fine till today morning we are getting messages as “Sorry, my bot code is having an issue”…It is not working. Any suggestions?..In the error list of DirectLine it is showing as “There was an error sending this message to your bot: HTTP status code InternalServerError”…
Code:
public class MessagesController : ApiController
{
internal static IDialog<CathyFormDialog> MakeRootDialog()
{
return Chain.From(() => FormDialog.FromForm(CathyFormDialog.BuildForm));
}
/// <summary>
/// POST: api/Messages
/// Receive a message from a user and reply to it
/// </summary>
///
[ResponseType(typeof(void))]
public async Task<HttpResponseMessage> Post([FromBody]Activity activity)
{
if(activity !=null)
{
switch (activity.GetActivityType())
{
case ActivityTypes.Message:
await Conversation.SendAsync(activity, () => new TrygBot.TrygDialog());
break;
case ActivityTypes.ConversationUpdate:
case ActivityTypes.ContactRelationUpdate:
case ActivityTypes.Typing:
case ActivityTypes.DeleteUserData:
default:
Trace.TraceError($"Unknown activity type ignored: {activity.GetActivityType()}");
break;
}
}


Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top Results From Across the Web
There was an error sending this message to your bot: HTTP ...
There was an error sending this message to your bot : HTTP status code InternalServerError in web chat bot framework azure portal ·...
Read more >There was an error sending this message to your bot
There was an error sending this message to your bot : HTTP status code Unauthorized. hi, I just published my bot ... internal...
Read more >There was an error sending this message to your bot ... - GitHub
I posted a question about this issue on Stack Overflow using the tag botframework . I have searched the existing issues before logging...
Read more >Building up my first Azure Bot - Reddit
Error: There was an error sending this message to your bot: HTTP status code InternalServerError. For single-tenant bot.
Read more >[OutSystems.AI Chatbot] After updating messaging endpoint
There was an error sending this message to your bot : HTTP status code InternalServerError. Also in Azure I cannot load App Service...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rahulsarkar123 Great! Can you provide details on the root cause of the problem and the solution?
can you please help me …i regenerate another key …and still i have this problem