How to handle different service URLs?

Kaivalya Choudhary 1 Reputation point
2021-02-12T10:48:53.413+00:00

Hey,

I'm developing a bot for Microsoft Teams that needs to proactively message users and proactively post messages into channels. The service URL is being stored in the database for proactive messaging, but when a user messages the bot, a different service URL is sent.

I'm based in India, so generally the service URL has always been https://smba.trafficmanager.net/in/ but for the last few days the bot has been receiving https://smba.trafficmanager.net/jp/ and https://smba.trafficmanager.net/apac/ URLs in personal contexts, which I am not able to understand. This is preventing the bot from sending proactive messages because of wrong service URL stored in the database, which causes the ConnectorClient method calls to throw the error: "User is from different region".

Is this a known issue? How can this be handled better?

Also please provide more information on how my bot received 3 different service URLs in the same location.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,273 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nikitha-MSFT 541 Reputation points
    2021-03-02T06:13:43.577+00:00

    For each user the the service url will be different based on the region. This is by design.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.