SOLVED

Problem with Bot Framework

%3CLINGO-SUB%20id%3D%22lingo-sub-1852682%22%20slang%3D%22en-US%22%3EProblem%20with%20Bot%20Framework%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852682%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20simple%20bot.%20And%20it's%20100%25%20working%20on%20the%20emulator.%20(I%20have%20tested%20it)%20But%20when%20I%20have%20created%20it%20on%20real-teams%20via%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdev.botframework.com%2Fbots%2Fnew%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdev.botframework.com%2Fbots%2Fnew%3C%2FA%3E%20and%20via%20manually%20uploading%20manifest%20created%20in%20App%20Studio.%20Then%20I%20set%20up%20server%20on%20repl.it.%20But%20always%20I%20got%20this%20error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3EPermissionError%3A%20%5BErrno%20Unauthorized.%20Invalid%20AppId%20passed%20on%20token%3A%20%5D%20%5B*%5D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20-%20ID%20of%20App%20created%20in%20App%20Registrations%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1852682%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852702%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20with%20Bot%20Framework%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852702%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F845237%22%20target%3D%22_blank%22%3E%40norxnd%3C%2FA%3E%26nbsp%3B-%20Do%20your%20bot%20has%20authentication%3F%20Could%20you%20please%20share%20more%20info%20what%20you%20are%20trying%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852725%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20with%20Bot%20Framework%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852725%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3EWell%20I'm%20trying%20to%20make%20a%20Teams%20chatbot%20that%20will%20react%20to%20messages%20and%20do%20some%20actions%20and%20I%20just%20do%20not%20know%20what%20to%20do.%20I'm%20probably%20doing%20everything%20wrong%20because%20I%20don't%20understand%20any%20of%20this%20API%20%2F%20Framework%20at%20all.%20I%20do%20not%20have%20an%20Azure%20subscription.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHare%20is%20my%20test%20code%3A%20%3CA%20href%3D%22https%3A%2F%2Frepl.it%2F%40NORXND%2Fteams%3Flite%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Frepl.it%2F%40NORXND%2Fteams%3Flite%3Dtrue%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20I%20do%20not%20know%20If%20it%20has%20auth.%20I%20do%20not%20know%20anything%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1866216%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20with%20Bot%20Framework%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1866216%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3EI%20have%20checked%20the%20docs%20first.%20I%20said%2C%20bot%20works%20in%20emulator.%20But%20thanks%20for%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1879457%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20with%20Bot%20Framework%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1879457%22%20slang%3D%22en-US%22%3E%3CP%3EOk.%20I%20solved%20the%20problem%20for%20myself!%20That%20was%20very%20easy%20and%20it%20was%20a%20problem%20with%20my%20code.%20I%20needed%20to%20add%20AppID%20and%20Password%20from%20App%20Studio%20to%20my%20Adapter%20class.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have created a simple bot. And it's 100% working on the emulator. (I have tested it) But when I have created it on real-teams via https://dev.botframework.com/bots/new and via manually uploading manifest created in App Studio. Then I set up server on repl.it. But always I got this error:

 

 

PermissionError: [Errno Unauthorized. Invalid AppId passed on token: ] [*]

 

 

* - ID of App created in App Registrations

5 Replies

@norxnd - Do your bot has authentication? Could you please share more info what you are trying?

@Nikitha-MSFTWell I'm trying to make a Teams chatbot that will react to messages and do some actions and I just do not know what to do. I'm probably doing everything wrong because I don't understand any of this API / Framework at all. I do not have an Azure subscription.

 

Hare is my test code: https://repl.it/@NORXND/teams?lite=true

 

And I do not know If it has auth. I do not know anything

@norxnd - Could you please check the docs try if that helps here. Try if that helps

@Nikitha-MSFTI have checked the docs first. I said, bot works in emulator. But thanks for help. 

best response confirmed by norxnd (Occasional Contributor)
Solution

Ok. I solved the problem for myself! That was very easy and it was a problem with my code. I needed to add AppID and Password from App Studio to my Adapter class.