Hi John Siri,
Based on the above error we got , lets understand few troubleshooting steps to resolve our issue:
- Since you can send messages but fetching fails, it’s likely that Front Door isn’t routing API calls (e.g., for listing messages) correctly to your backend. Verify that API paths like
/messages
or/participants
are routed to the right backend service. Set up "path-based routing" to make sure Front Door forwards requests to the correct backend service. Azure Front Door route matching and configuration and How to configure endpoints and routing rules - Double-check that your hosted environment matches your local setup, especially around base URLs, environment variables, and endpoint configurations. Compare the local configuration with your hosted settings, ensuring the URLs and authentication tokens are correctly set. Configure App Settings in Azure App Service
-
https://azurefrontdoorpages.azureedge.net/pages/PageNotFound_files/favicon.ico
), suggests that Azure Front Door is not routing the request to the backend correctly. Instead of returning the expected API response, it’s returning a static 404 error page. This is a strong indicator that routing or path matching is misconfigured. Azure Front Door troubleshooting and diagnostics - While less likely the root cause here (since you can send messages), it’s good practice to ensure your application has both send and read permissions if you’re using services like Azure Communication Services. Authentication and permissions for Azure Communication Services
- Review CORS and Authentication (if applicable): If your frontend and backend are on different domains, ensure that CORS policies are correctly configured and that authentication tokens are valid in the hosted environment. Azure Front Door and CORS support and Azure Communication Services authentication
Thanks! John Siri, for sharing this , am mentioning it here so that others can have collective answer for this issue-
solution applied by John- the error got fixed when he removed the access key to the URL. he think that the access key made it assume I was trying to route through Azure Front Door.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.