Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this working stable currently? #36

Open
fabulias opened this issue Apr 7, 2020 · 4 comments
Open

Is this working stable currently? #36

fabulias opened this issue Apr 7, 2020 · 4 comments
Labels
question Further information is requested

Comments

@fabulias
Copy link

fabulias commented Apr 7, 2020

Hi,
I'm creating a bot for Microsoft teams, I have created a bot in https://dev.botframework.com/bots/new, I have my APP_ID and my APP_PASSWORD (the last created in Secret and Keys page).

When I try to run an example of msbotbuilder-go\samples\echobot and try to test the bot from testing page
TestingPage

I obtained an error in ngrok and my service.

ngrok

HTTP Requests                                                                                                           -------------                                                                                                                                                                                                                                   POST /api/messages             400 Bad Request 

example

PS C:\Users\fabulias\go\src\github.com\infracloudio\msbotbuilder-go\samples\echobot> go run .\main.go
Starting server on port:3978...
Failed to process request Failed to create Activity context.: Activity type conversationUpdate not supported yet
Failed to process request Failed to send response.: HTTP error 401: invalid response.

I'm working on Windows 10 Pro edition.

Please, I arrived here because I thought that this is a client for Microsoft bots apps, help me a few.

@PrasadG193
Copy link
Member

Hey @fabulias,
Have you set APP_ID and APP_PASSWORD creds in env vars? The SDKs are still in development. We don't support all Activity types yet. That's why you see logs like Activity type * not supported yet. Echo example should work once you set creds.

@fabulias
Copy link
Author

Yeah, I have my envs vars OK, but the activity type that I tried is from the test from page from Microsoft, what kind of activities are you supporting?

@bmorton
Copy link
Contributor

bmorton commented Apr 16, 2020

I was having the same problem and then was able to get some debug output that was throwing this:

AADSTS700016: Application with identifier 'xxx-xxx-xxx' was not found in the directory 'botframework.com'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

I was able to fix this by toggling the setting on my app to allow this directory. I pulled up my app settings on Azure, went to the "Authentication" tab and changed "Accounts in this organizational directory only" to "Accounts in any organizational directory" and everything's working for me now.

It looked like if the call to get a token fails, the next request will be attempted with no bearer token and that's why I was seeing the 401.

@sanketsudake sanketsudake added the question Further information is requested label May 1, 2020
@PrasadG193
Copy link
Member

@fabulias as mentioned by @bmorton, you need to choose "Accounts in any organizational directory" account type while registration.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants