question

KaivalyaChoudhary-6012 avatar image
0 Votes"
KaivalyaChoudhary-6012 asked Breeze-2640 commented

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.

office-teams-app-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are not able to repro the issue at our end. Could you please share the manifest file?

0 Votes 0 ·

1 Answer

NikithaMSFT-0176 avatar image
0 Votes"
NikithaMSFT-0176 answered Breeze-2640 commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NikithaMSFT-0176 When you're saying, the service url will be different based on the region
- Is the service url using the pattern https://smba.trafficmanager.net/${region}
- Will the domain(smba.trafficmanager.net) change?
Thanks.

0 Votes 0 ·