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

Failed to start conversation: no conversation ID returned. #84

Open
santiagodoldan opened this issue Jan 5, 2018 · 10 comments
Open

Failed to start conversation: no conversation ID returned. #84

santiagodoldan opened this issue Jan 5, 2018 · 10 comments

Comments

@santiagodoldan
Copy link

Hello guys, I'm getting this error when trying to start a conversation with some users, I'd like to know if this is something ok because some user roles can't interact with bots or if there's something I can do to start a conversation with them.

These are the lines that throw the error https://github.com/Microsoft/BotBuilder/blob/master/Node/core/src/bots/ChatConnector.ts#L314-L321

Thanks :)

@billbliss
Copy link
Contributor

We need more information to answer your question.

What's your source code that's throwing the error?

@santiagodoldan
Copy link
Author

      this.connector.startConversation({
        ...address,
        channelId: "msteams",
      } as IAddress, (err, newAddress: ISuttnaAddress) => {
        ...
      })

Not sure if you mean that

@billbliss
Copy link
Contributor

I can’t quite tell what the problem is. Are you saying that for some values of “...address” it’s working and for some it’s failing?

@santiagodoldan
Copy link
Author

@billbliss Yes, I'm pretty sure it is because our bot can't start direct conversations with some users.

Saying that, this is what we're doing, we get all the users from a channel and then start a conversation with each user, over the past few weeks, we got a bunch of errors saying Failed to start conversation: no conversation ID returned., I guess that it might be related to a specific user type or a role that does not have the proper privileges to have direct conversations with a bot, I'm just guessing because the fetchMembers only includes the id+name+email.

@billbliss
Copy link
Contributor

There are no restrictions on bot conversations by user role. We should investigate. How can we find this in our logs - should we look for the Suttna bot and the "Failed to start conversation" error? What's your app id?

@santiagodoldan
Copy link
Author

Is it ok to send some information to [email protected]?

@billbliss
Copy link
Contributor

It is now! :-)

@santiagodoldan
Copy link
Author

@billbliss I finally was able to reproduce this 😌 , I've created a new tenant, then invited a user from that new tenant as a guest, tried to start a direct conversation and got the "Failed to start conversation: no conversation ID returned."

Then I was able to fix it too, looks like if the guest user explicitly talks with our bot, that gives them privileges to talk with it.

Is this an issue or is the expected behavior? because if it is we must document it in our web or somewhere.

@bilby91
Copy link
Contributor

bilby91 commented Feb 1, 2018

This is kind of related to #88

@santiagodoldan
Copy link
Author

@billbliss ping :)

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

No branches or pull requests

3 participants