Hello Laxmiprasad Putta,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Problem
I understand that you are facing 403 forbidden error in connecting cognitive service to communication.
Solution
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.
- Ensure that the API key is active and has not expired.
- Check if there are any limitations or restrictions on your subscription that might be causing the issue.
- 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.
- 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. - 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.
- 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