botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

There was an error sending this message to your bot: HTTP status code InternalServerError

Open rahulsarkar123 opened this issue 9 years ago • 9 comments

httperror 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;
                }
            }
 
![botframeworkerror](https://cloud.githubusercontent.com/assets/26003233/23301905/42c0c4c0-fab2-11e6-907d-d8098056b90f.png)

![httperror](https://cloud.githubusercontent.com/assets/26003233/23302367/771f0c98-fab4-11e6-9cdd-41cc4e28dcc6.png)

rahulsarkar123 avatar Feb 24 '17 11:02 rahulsarkar123

It looks like that your bot is not authorized. What about your webconfig ?

ghost avatar Feb 24 '17 11:02 ghost

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:

rahulsarkar123 avatar Feb 24 '17 12:02 rahulsarkar123

I am facing same issue as well

image

prasadhonrao avatar Feb 25 '17 03:02 prasadhonrao

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

[image]https://urldefense.proofpoint.com/v2/url?u=https-3A__cloud.githubusercontent.com_assets_1454174_23327656_d9c45552-2Dfb35-2D11e6-2D9174-2D4ad3406c4e11.png&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=QslpQpuOneGqy6e8F7Jf9wWEOB9eLjGjUUt9mnOdl0k&m=2JuXx2WOWeJn25byput0u47APF8lB3LWe5le0YceJOw&s=mig3k1dISJRGYn5CPt0awTrn70WmC4BV-MexCqjltN0&e=

— 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 avatar Feb 25 '17 14:02 rahulsarkar123

@rahulsarkar123 Great! Can you provide details on the root cause of the problem and the solution?

prasadhonrao avatar Feb 25 '17 17:02 prasadhonrao

@rahulsarkar123, 'm having the same issue and it would be great, if you could let us know how you solved it.

andrehe001 avatar Feb 27 '17 17:02 andrehe001

The LUIS account trial period got expired, it exceeded 10,000 calls / month, I generated new keys and configured bots.It worked.

rahulsarkar123 avatar Feb 28 '17 08:02 rahulsarkar123

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

rahulsarkar123 avatar Feb 28 '17 08:02 rahulsarkar123

can you please help me ...i regenerate another key ..and still i have this problem

stelazh avatar Jun 14 '17 15:06 stelazh