For each user the the service url will be different based on the region. This is by design.
How to handle different service URLs?
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.