{"componentChunkName":"component---src-templates-post-template-jsx","path":"/2020-01-22-teams-bot-error-failed-to-send","result":{"data":{"markdownRemark":{"html":"<p>So this falls into the class of \"I'm blogging this for when (not if) it happens to me in future, but maybe it can be helpful to someone else\" category. I started deploying a bot a few weeks ago into another environment (staging) but then got busy with other work and forgot about it. I'd done the initial deployment with <a href=\"https://www.terraform.io/\">Terraform</a>, before I started working on a PR for the project to add the Teams channel support to Bot Framework bots, and so in the end I never added the Teams channel.</p>\n<p>As a result, when I came back to work on the bot today, and deployed my manifest into Teams, I got the following error:</p>\n<p><figure class=\"gatsby-resp-image-figure\" style=\"\">\n    <span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 236px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 52%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAACE3AAAhNwEzWJ96AAABYklEQVQoz42S206DQBCG+/53voF3PoCJF5potImxttoWKoee5AzltMsCxbvfASrpQVMvJvPPMPPl3116ucggMo48z5BFEbi2gnf/jPDlHclURTiYIBpKiEYS4vEHZRnxmwymryAYQ7dPuY7eATCMkC0N6BeX+Ly6RjJR4Nw8wL3tI3h6RfA4gHfXx6Y/JOD6PFDEMZKZDncyA9OWYOoSfL4Gp+XaESP3ja6/kRb8HDAioKTBG03BCJzKGlJpF7WW9a5myuKMwzqnKbjpILMcynajhe1CWG6j656wvbammW7vGHjQLAS5FW0ucriujSDwm7rcFrBti3oOyrJodvZhpw53A11Qz7RNWI5FmqPallA1BYZloPqqTmAHDvejGSR3zPXgj2WE2gJZ/WCfJgJZoVCRmlZzkmOXfwNpmNN/GalzRDq9drAB8/22pkgM8//AfWhRlSjovn7ut6Bjt7381yN/A+nK6/mywe1uAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Failed To Send Error\"\n        title=\"Failed To Send Error\"\n        src=\"/static/f6e523a0ec852e58e24dab6683af6ce0/f6a20/2020-01-22-failed-to-send-1.png\"\n        srcset=\"/static/f6e523a0ec852e58e24dab6683af6ce0/56d15/2020-01-22-failed-to-send-1.png 200w,\n/static/f6e523a0ec852e58e24dab6683af6ce0/f6a20/2020-01-22-failed-to-send-1.png 236w\"\n        sizes=\"(max-width: 236px) 100vw, 236px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span>\n    <figcaption class=\"gatsby-resp-image-figcaption\">Failed To Send Error</figcaption>\n  </figure></p>\n<p>Aside from \"Failed To Send Error\" within Teams, when I used the browser debug tools to investigate I got an error 205 \"Invalid member in the thread\", as shown below.</p>\n<p><figure class=\"gatsby-resp-image-figure\" style=\"\">\n    <span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 800px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 5.499999999999999%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAABCAYAAADeko4lAAAACXBIWXMAAAsSAAALEgHS3X78AAAAS0lEQVQI1w3LMQ6AIBAAQf//OxI6FApiI3eEoHB0K90Ws0dKiegc0Xuu3WcI5JyZZny1slR4taNlIPdDk4ZVZYpgqqzeWduNUrD9/KzLSuIguZ7pAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Invalid member in the thread Error\"\n        title=\"Invalid member in the thread Error\"\n        src=\"/static/bd64fdedb93aa57cc26678841dd3bfb7/78d47/2020-01-22-failed-to-send-2.png\"\n        srcset=\"/static/bd64fdedb93aa57cc26678841dd3bfb7/56d15/2020-01-22-failed-to-send-2.png 200w,\n/static/bd64fdedb93aa57cc26678841dd3bfb7/d9f49/2020-01-22-failed-to-send-2.png 400w,\n/static/bd64fdedb93aa57cc26678841dd3bfb7/78d47/2020-01-22-failed-to-send-2.png 800w,\n/static/bd64fdedb93aa57cc26678841dd3bfb7/64756/2020-01-22-failed-to-send-2.png 1200w,\n/static/bd64fdedb93aa57cc26678841dd3bfb7/cc6c5/2020-01-22-failed-to-send-2.png 1552w\"\n        sizes=\"(max-width: 800px) 100vw, 800px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span>\n    <figcaption class=\"gatsby-resp-image-figcaption\">Invalid member in the thread Error</figcaption>\n  </figure></p>\n<p>This made me think that just Teams was unable to communicate with the Bot. In fact, I had a pretty good idea that the Bot was in fact fine, as it was a \"staging\" version of exactly the same code I had running elsewhere. I check the host environment, to confirm, but all was fine, so then I checked the  \"Test in Web Chat\" in the Azure Bot registration, and that was fine too - that confirmed it - the BOT was fine, but BOT &#x3C;-> TEAMS was not fine. I went to check the Channels and, lo and behold, Teams was missing as a Channel. I fixed it, but in case you get this error, check your Channels registration in Azure for your Bot, it <em>should</em> appear as below:</p>\n<p><figure class=\"gatsby-resp-image-figure\" style=\"\">\n    <span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 800px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 60.5%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAACXBIWXMAACE3AAAhNwEzWJ96AAABVUlEQVQoz4VSa2+DMAzk//+9TZr2aVq1qZRHICHkDbfYNIhuQ7U4Gcn2+Ry7ct5DSgmtNUIIO8iWZYExBs65B1hr4XMd2bquO8gq7SLGTJhS2hOIqPy3bYfb7YZeCIiMpmlQ1zWGYdhzitF/NZiAJheNOYG6/9f1zEqcxKzLXSGNRKBgUVkUhhBxvQr4uMCGBBcTxwjHhnKSMM5shFIqHmEcxz1pJ8xEb+8Co4kYTGK/HNQzYf5ssAweWWmHvu+hlNqJFu68sq/nlGMSs57+PEdRaLxhsMKm/cbl8wOTHKEnhUlt/qiWniJm/FZXkJbEYIVE0LYNn0JKcUOMpwt5tqhqdgJd1/JJHE+nLMd7xzdHOMbPUEk18ELoHQllg0yYCTqxxUX2x2M+VWh9yAWSi6ZpetgyKXptFL4GjZeLgPPhOeF6H+2o7Diymi2MdVDa8GKeEf4ASFOuBRPwCp0AAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Teams Channel Registration\"\n        title=\"Teams Channel Registration\"\n        src=\"/static/663a3e7d3d2ac2008a291434cd29af5c/78d47/2020-01-22-failed-to-send-3.png\"\n        srcset=\"/static/663a3e7d3d2ac2008a291434cd29af5c/56d15/2020-01-22-failed-to-send-3.png 200w,\n/static/663a3e7d3d2ac2008a291434cd29af5c/d9f49/2020-01-22-failed-to-send-3.png 400w,\n/static/663a3e7d3d2ac2008a291434cd29af5c/78d47/2020-01-22-failed-to-send-3.png 800w,\n/static/663a3e7d3d2ac2008a291434cd29af5c/64756/2020-01-22-failed-to-send-3.png 1200w,\n/static/663a3e7d3d2ac2008a291434cd29af5c/42cbc/2020-01-22-failed-to-send-3.png 1600w,\n/static/663a3e7d3d2ac2008a291434cd29af5c/f11b4/2020-01-22-failed-to-send-3.png 1982w\"\n        sizes=\"(max-width: 800px) 100vw, 800px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span>\n    <figcaption class=\"gatsby-resp-image-figcaption\">Teams Channel Registration</figcaption>\n  </figure></p>\n<p>Hope that helps someone else as well.</p>\n<p>-- Hilton</p>","timeToRead":1,"excerpt":"So this falls into the class of \"I'm blogging this for when (not if) it happens to me in future, but maybe it can be helpful to someone else…","frontmatter":{"title":"Teams Bot Error - Failed To Send (Invalid member in the thread)","date":"2020-01-22T19:00:00Z","categories":["development"],"tags":["dev","teams","bots"],"description":"Getting a Failed To Send error on a bot in Microsoft Teams (also shown as 'Invalid member in the thread')","keywords":"Bots, Teams, Microsoft","cover":{"childImageSharp":{"fixed":{"base64":"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAMABQDASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAABQAE/8QAFAEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEAMQAAABQLXzCnUn/8QAHBAAAQMFAAAAAAAAAAAAAAAAAwACBAEREzEz/9oACAEBAAEFApV8UahXER+enL//xAAVEQEBAAAAAAAAAAAAAAAAAAABEP/aAAgBAwEBPwEn/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAHxAAAgECBwAAAAAAAAAAAAAAAQIAEBEDEiJBUWJx/9oACAEBAAY/AtLENtaLd2y+0J4Ewj1p/8QAGhAAAgMBAQAAAAAAAAAAAAAAAREAEDEhYf/aAAgBAQABPyFpDbMThS63aj6imYmiv//aAAwDAQACAAMAAAAQjA//xAAVEQEBAAAAAAAAAAAAAAAAAAAQMf/aAAgBAwEBPxCD/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPxA//8QAHRABAQABBAMAAAAAAAAAAAAAAREhABBRYXGRof/aAAgBAQABPxCTJ+kC8abstZGS47KbHlsFxdLJgB82Dfe3/9k=","width":660,"height":400,"src":"/static/301d047612d4ad575e5e856d9653a941/105fa/titlepic.jpg","srcSet":"/static/301d047612d4ad575e5e856d9653a941/105fa/titlepic.jpg 1x"}}}},"fields":{"slug":"/2020-01-22-teams-bot-error-failed-to-send","date":"2020-01-22T19:00:00.000Z"}}},"pageContext":{"slug":"/2020-01-22-teams-bot-error-failed-to-send","nexttitle":"How Bot Calls Actually Work","nextslug":"/how-bot-calls-actually-work","prevtitle":"Teams Bot Issue - Multiple (Repeated) ConversationUpdate/MembersAdded Messages","prevslug":"/2020-02-13-multiple-repeated-members-added-in-teams","tagList":["viva","connections","dev","sharepoint","teams","office365","search","adoption","collaboration","bots","help","bugs"],"categoryList":["development","poweruser","training","personal"],"latestPostEdges":[{"node":{"fields":{"slug":"/2021-04-12-viva-connections-custom-search"},"frontmatter":{"template":"post","title":"Using a Custom Search Page in Microsoft Viva Connections","tags":["viva","connections","dev","sharepoint","teams","office365","search"],"categories":["development","poweruser"],"date":"2021-04-12T07:00:00Z"}}},{"node":{"fields":{"slug":"/2021-04-05-viva-connections-different-sites-for-different-users"},"frontmatter":{"template":"post","title":"Setting Different Sites for Different Users in Microsoft Viva Connections","tags":["viva","connections","dev","sharepoint","teams","office365"],"categories":["development","poweruser"],"date":"2021-04-05T07:00:00Z"}}},{"node":{"fields":{"slug":"/2021-04-01-different-ways-of-creating-the-viva-connections-app-package"},"frontmatter":{"template":"post","title":"A Different Way to Create the Microsoft Viva Connections App Package","tags":["viva","connections","dev","sharepoint","teams","office365"],"categories":["development","poweruser"],"date":"2021-04-01T07:00:00Z"}}},{"node":{"fields":{"slug":"/2021-03-31-understanding-viva-connections-app-package"},"frontmatter":{"template":"post","title":"Understanding the Microsoft Viva Connections App Package","tags":["viva","connections","dev","sharepoint","teams","office365"],"categories":["development","poweruser"],"date":"2021-03-31T07:00:00Z"}}},{"node":{"fields":{"slug":"/2021-02-18-podcast-building-teams-apps"},"frontmatter":{"template":"post","title":"[PODCAST] Building Apps for Microsoft Teams on DotNetRocks","tags":["dev","sharepoint","teams","office365","adoption","collaboration","bots"],"categories":["development","poweruser","training"],"date":"2021-02-18T07:00:00Z"}}},{"node":{"fields":{"slug":"/2020-11-15-webcast-bots-drive-collaboration"},"frontmatter":{"template":"post","title":"[WEBINAR] How Bots in Teams Can Drive Collaboration & Increase User Adoption","tags":["dev","sharepoint","teams","office365","adoption","collaboration","bots"],"categories":["development","poweruser","training"],"date":"2020-11-15T07:00:00Z"}}},{"node":{"fields":{"slug":"/2020-04-29-headerlesssearchresults-cant-show-this-page-with-its-current-layout"},"frontmatter":{"template":"post","title":"Custom SharePoint Online Search Results Error - HeaderlessSearchResults Error - 'We can't show this page with its current layout'","tags":["dev","sharepoint","office365","help","search"],"categories":["development"],"date":"2020-04-29T07:00:00Z"}}},{"node":{"fields":{"slug":"/2020-02-13-multiple-repeated-members-added-in-teams"},"frontmatter":{"template":"post","title":"Teams Bot Issue - Multiple (Repeated) ConversationUpdate/MembersAdded Messages","tags":["dev","teams","bots","bugs"],"categories":["development"],"date":"2020-02-13T19:00:00Z"}}}]}},"staticQueryHashes":[]}