Issue in connecting cognitive service to communication

Laxmiprasad Putta 0 Reputation points

Facing 403 forbidden error. What could be the issueUser's image

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
802 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
716 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,628 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 7,206 Reputation points

    Hello Laxmiprasad Putta,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.


    I understand that you are facing 403 forbidden error in connecting cognitive service to communication.


    The error is a generic type, and a 403 Forbidden error typically indicates that the server understood the request but refuses to authorize it. I provide some steps to troubleshoot and resolve this issue when connecting to a cognitive service for communication.

    1. Ensure that the API key is active and has not expired.
    2. Check if there are any limitations or restrictions on your subscription that might be causing the issue.
    3. Make sure you are using the correct endpoint for the specific region where your cognitive service is deployed. Because cognitive services are often region-specific, so using the wrong region's endpoint can cause access issues.
    4. Check that you include all required headers, especially the Authorization header with the correct API key. Ensure that there are no typos or missing headers.
    5. Ensure that your network allows outbound traffic to the cognitive service's endpoint in the firewall and network settings. In looking at the response body of the 403 error for the call is making to your local network that indicate the specific reason for the refusal.
    6. If you have gone through the above steps and still cannot resolve the issue, consider contacting the cognitive service's support team for assistance. Provide them with details of your request and any error messages you have received.

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    0 comments No comments