botframework-sdk: Creating of conversation with user from another region is failed

Version

4.10.3

Describe the bug

When I try to start a conversation with a user via BotFrameworkAdapter.CreateConversationAsync() - I get an “Operation returned an invalid status code ‘Forbidden’” error if the user has a ServiceUrl other than “https://smba.trafficmanager.net/emea/”. For example, several users have a ServiceUrl equal to “https://smba.trafficmanager.net/fr/” and for them I get an error while creating a conversation. I am using the AppCredentials.TrustServiceUrl() method before creating the conversation, but that does not help to avoid the error.

Expected behavior

I want to create a conversation regardless of the user’s region

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15

Most upvoted comments

Having same issue

same situation

this is a teams bot and all users in single tenant

Following issue seem to be discussing on the same issue. https://github.com/microsoft/botbuilder-js/issues/3280

It appears something was quietly fixed in the backend. Can you please attempt to repro your issue and see if it’s still occurring?

Thank you for your patience. Just waiting for an update from the above linked issue to see if it is related to this one.

Hello! Location of my App Service at Azure is “UK South”, location of the Resource Group is “West Europe”. Most of users (nearly 800) have Service Url equaled to “https://smba.trafficmanager.net/emea/”, but some users (~10) some times have “https://smba.trafficmanager.net/fr/” - the list of these users changes from time to time