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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
PrasadHonraocommented, Feb 25, 2017

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

0reactions
stelazhcommented, Jun 14, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found