Home

Bot not responding on Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-219845%22%20slang%3D%22en-US%22%3EBot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219845%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20built%20a%20bot%20(using%20RESTAPI)%20thats%20hosted%20on%20my%20linux%20machine%20and%20its%20using%20ngrok%20to%20go%20public.%3C%2FP%3E%3CP%3EI%20created%20the%20manifest%20file%20through%20app%20studio%20and%20uploaded%20the%20app.%3C%2FP%3E%3CP%3EI%20can%20see%20my%20app%2C%20I%20can%20add%20my%20app%20as%20a%20tab.%20IT%20works%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20on%20testing%20my%20bot%20on%20(%3CA%20href%3D%22https%3A%2F%2Fdev.botframework.com%2Fbots%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.botframework.com%2Fbots%2F%3C%2FA%3E)%2C%20it%20responds%20but%20when%20i%20try%20to%20access%20it%20through%20teams%20it%20doesn't.%3C%2FP%3E%3CP%3EI%20have%20also%20enabled%20the%20teams%20channel.%20Not%20sure%20why%20its%20not%20working.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-219845%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-293803%22%20slang%3D%22en-US%22%3ERE%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-293803%22%20slang%3D%22en-US%22%3EThis%20is%20a%20real%20problem!%20We%20promised%20to%20deliver%20a%20teams%20bot%20to%20our%20customer%20and%20we%20are%20facing%20lot%20of%20issues%20with%20teams%20which%20does%20not%20respond%20to%20the%20chat%20most%20of%20the%20times%2C%20where%20as%20web%20chat%20and%20skype%20works%20fine.%20Webhook%20url%20itself%20is%20not%20called.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-293802%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-293802%22%20slang%3D%22en-US%22%3ESame%20issue%20here%20as%20well%2C%20It%20is%20very%20unstable.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219971%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219971%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Paul%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emy%20server%20is%20running%20Django(python)%20framework%20and%20I%20am%20using%20REST%20API.%3CBR%20%2F%3EI%20am%20not%20using%20any%20SDK.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219965%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219965%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20did%20you%20build%20the%20bot%20and%20which%20bot%20framework%20did%20you%20use%3F%3C%2FP%3E%0A%3CP%3Edid%20you%20use%20generator-teams%3F%20and%20is%20it%20nodejs%20or%20C%23%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219951%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219951%22%20slang%3D%22en-US%22%3E%3CP%3Eno%2C%20that's%20not%20the%20case.%26nbsp%3B%3CBR%20%2F%3EWeb%20Application%20is%20always%20active!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219950%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219950%22%20slang%3D%22en-US%22%3E%3CP%3EMay%20be%20you%20are%20right!%3CBR%20%2F%3EI%20have%20started%20getting%20replies%20however%20getting%20400%20Bad%20request.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ereply%20%3D%20requests.post(url%2C%20json%3Djson_data%2C%20headers%20%3D%20headers)%3C%2FP%3E%3CP%3Eheaders%20has%20Authorization%20token!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20still%20got%20the%20following%2C%20any%20help%20is%20appreciated.%3C%2FP%3E%3CP%3E400%20%7B%22error%22%3A%7B%22code%22%3A%22BadArgument%22%2C%22message%22%3A%22Unknown%20attachment%20type%22%7D%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219939%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219939%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20long%20was%20the%20time%20difference%20between%20running%20it%20in%20Teams%20and%20building.%20Could%20it%20be%20that%20the%20webapp%20is%20not%20Always%20on.%20Which%20means%20you%20first%20have%20to%20visit%20the%20site%20before%20it%20answers..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219867%22%20slang%3D%22en-US%22%3ERe%3A%20Bot%20not%20responding%20on%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219867%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20appears%26nbsp%3Bto%20be%20a%20problem%20with%20bots%20in%20MS%20teams%20right%20now%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FBots-have-stopped-working%2Fm-p%2F219839%23M15903%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FBots-have-stopped-working%2Fm-p%2F219839%23M15903%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hi,

 

I have built a bot (using RESTAPI) thats hosted on my linux machine and its using ngrok to go public.

I created the manifest file through app studio and uploaded the app.

I can see my app, I can add my app as a tab. IT works fine.

 

However on testing my bot on (https://dev.botframework.com/bots/), it responds but when i try to access it through teams it doesn't.

I have also enabled the teams channel. Not sure why its not working.

8 Replies

How long was the time difference between running it in Teams and building. Could it be that the webapp is not Always on. Which means you first have to visit the site before it answers..

May be you are right!
I have started getting replies however getting 400 Bad request.


reply = requests.post(url, json=json_data, headers = headers)

headers has Authorization token!

 

but still got the following, any help is appreciated.

400 {"error":{"code":"BadArgument","message":"Unknown attachment type"}}

no, that's not the case. 
Web Application is always active! 

How did you build the bot and which bot framework did you use?

did you use generator-teams? and is it nodejs or C#

Hey Paul,

 

my server is running Django(python) framework and I am using REST API.
I am not using any SDK.

Same issue here as well, It is very unstable.
This is a real problem! We promised to deliver a teams bot to our customer and we are facing lot of issues with teams which does not respond to the chat most of the times, where as web chat and skype works fine. Webhook url itself is not called.
Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies