There was an error sending this message to your bot: HTTP status code InternalServerError
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;
}
}


It looks like that your bot is not authorized. What about your webconfig ?
No..It was working fine till last night..from today morning onwards i am getting this response. I think there is some issue with the BotFramework server. Can you please check and let me know? Here is the webconfig code:
WebConfig:
I am facing same issue as well

Thanks the issue is resolved now. I resolved it.
Thanks & Regards
Rahul Sarkar
Unique Identity: Emerging Technologies
Accenture
Mobile : +91 7829306427
Email : [email protected]
From: Prasad Honrao [email protected] Sent: Saturday, February 25, 2017 8:39:23 AM To: Microsoft/BotBuilder Cc: Sarkar, Rahul B.; Author Subject: Re: [Microsoft/BotBuilder] There was an error sending this message to your bot: HTTP status code InternalServerError (#2341)
I am facing same issue as well
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Microsoft_BotBuilder_issues_2341-23issuecomment-2D282455453&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=QslpQpuOneGqy6e8F7Jf9wWEOB9eLjGjUUt9mnOdl0k&m=2JuXx2WOWeJn25byput0u47APF8lB3LWe5le0YceJOw&s=8DLpt-3U8QLgdJznUvWUE6RvKOp5N0gdv9BNYnQXiq4&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AYzHIS1aLJdVy8pGdQmqCXWHFnwGyLXgks5rf5tjgaJpZM4MLGow&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=QslpQpuOneGqy6e8F7Jf9wWEOB9eLjGjUUt9mnOdl0k&m=2JuXx2WOWeJn25byput0u47APF8lB3LWe5le0YceJOw&s=7ayLYDJ98aAonozqfg2k5ynDMNuWfT2ljDX-eMd71Xw&e=.
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
www.accenture.com
@rahulsarkar123 Great! Can you provide details on the root cause of the problem and the solution?
@rahulsarkar123, 'm having the same issue and it would be great, if you could let us know how you solved it.
The LUIS account trial period got expired, it exceeded 10,000 calls / month, I generated new keys and configured bots.It worked.
The LUIS account trial period got expired, it exceeded 10,000 calls / month, I generated new keys and configured bots.It worked.
Thanks & Regards
Rahul Sarkar
Unique Identity: Emerging Technologies
Accenture
Mobile : +91 7829306427
Email : [email protected]
From: andrehe001 [email protected] Sent: Monday, February 27, 2017 10:38:53 PM To: Microsoft/BotBuilder Cc: Sarkar, Rahul B.; Mention Subject: Re: [Microsoft/BotBuilder] There was an error sending this message to your bot: HTTP status code InternalServerError (#2341)
@rahulsarkar123https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_rahulsarkar123&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=QslpQpuOneGqy6e8F7Jf9wWEOB9eLjGjUUt9mnOdl0k&m=cKJ4RSpjYSN8u_66DEIKrWC88xKxH-aPE6g3BSJUgX8&s=AIzFs-Sikb_D-NdSK7VK9cwR18Uju4x2Uq_lxjz_kos&e=, 'm having the same issue and it would be great, if you could let us know how you solved it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Microsoft_BotBuilder_issues_2341-23issuecomment-2D282783753&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=QslpQpuOneGqy6e8F7Jf9wWEOB9eLjGjUUt9mnOdl0k&m=cKJ4RSpjYSN8u_66DEIKrWC88xKxH-aPE6g3BSJUgX8&s=037pp6DG25QqERBFpu1Buy-WbMbUBsCwFFZ_NG0FiWo&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AYzHIagzkb6S-2DC-5Fvc9O-5F-5FgUkZGrGJyTlks5rgwMlgaJpZM4MLGow&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=QslpQpuOneGqy6e8F7Jf9wWEOB9eLjGjUUt9mnOdl0k&m=cKJ4RSpjYSN8u_66DEIKrWC88xKxH-aPE6g3BSJUgX8&s=-1ejISymwgyzp6BX2P86134v7Fq8jYZzFJ7Piqz7pks&e=.
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
www.accenture.com
can you please help me ...i regenerate another key ..and still i have this problem