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

Fail to send proactive message after some time #5

Open
ritazh opened this issue May 31, 2017 · 1 comment
Open

Fail to send proactive message after some time #5

ritazh opened this issue May 31, 2017 · 1 comment
Labels

Comments

@ritazh
Copy link
Collaborator

ritazh commented May 31, 2017

Error received in log when calling connector.Conversations.SendToConversationAsync after user ends conversation with a bot for some time.

Authorization for Microsoft App ID failed with status code Unauthorized and reason phrase 'Unauthorized'

This seems to occur in both Skype and Teams conversations.
Similar issue has been tracked here: microsoft/botframework-sdk#2575

@ritazh ritazh added the bug label May 31, 2017
@ritazh ritazh changed the title Fail to send proactive message after some time in Skype Fail to send proactive message after some time May 31, 2017
@EricDahlvang
Copy link

You need to add a call to
MicrosoftAppCredentials.TrustServiceUrl(serviceUrl);
This is done automatically when you are replying to a message, but not when using the ConnectorClient

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

No branches or pull requests

2 participants