ACS Sample does not work. Joining teams chat 403 forbidden

ChoiMoonsun 1 Reputation point
2021-05-25T11:47:54.277+00:00

99493-image.png

I get this error...
I just tried the sample code from here:
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/chat/meeting-interop?pivots=platform-web

I was able to receive the messages, but cant not send a message.
I already did submit the form (Teams interoperability) and checked it works.

Is there anything I should change on the ACS setting?

Please help.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
680 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Michał Kluz 11 Reputation points
    2022-05-02T10:56:02.27+00:00

    Hello, I have the same exact problem. I'm using the quickstart code, I successfully join the thread and I'm able to receive messages written in Teams application, but whenever I try to send a message from custom code, I receive 403 Forbidden error. Is there any update on this issue? Is there anything I can do to fix it?


  2. Prathmesh Prabhu 86 Reputation points Microsoft Employee
    2022-06-01T21:28:35.257+00:00

    [Promoting from a comment to an answer for posterity. This ended up resolving the OP's problem]

    I'll note that trying to send a message "too soon" in a teams interop call can fail with 403. The reason is that the Azure Communication Services user is added to the chat thread after they join the Teams call. So, trying to send the message before joining the call / immediately after can fail. This problem should resolve within a few seconds.

    This is not usually a problem, because the application only sends a message after the end-user types something.

    Looking at the code snippet you posted, it looked as if you were trying to test things out by sending the message programmatically. In that case, it is possible to send the message to soon. So just double checking.

    0 comments No comments

  3. MAROUAN AOULAD BEN TAHER 0 Reputation points
    2024-01-23T13:55:11.2366667+00:00

    موقع منبع المعرفة هو من أفضل مواقع تحميل التطبيقات والالعاب الأندرويد والايفون و ايضا الكمبيوتر . لأنه من الواقع الخالية من الفيروسات والآمنة وهو من البرامج التي يتم من خلالا تحميل كل أنواع الألعاب والتطبيقات و ايضا طرق حصرية للربح من الانترنت

    0 comments No comments