Request cannot be served in Azure Static Web App

Marco Junior 1 Reputation point
2022-05-21T10:39:22.96+00:00

Hello...

Well, just after implemented Custom Domain on my static web app, now when I try to browse it, I receive a "Request cannot be served." error.

I can't restart the service because there is no such option.

Any suggestion ?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2022-05-23T19:49:34.78+00:00

    @Marco Junior , Apologies for the delayed response from over the weekend.

    To better assist you on this. You could capture a network trace (when reproducing the error) via F12 developer tools (Network tab) in the browser to fetch more details on the error.

    Kindly do provide details about your setup and framework - When you map a custom domain to a static web app, you have a few options available to you. You can configure subdomains and an apex domain. Some registrars like GoDaddy and Google don't support domain records that affect how you configure your apex domain. Kindly check this doc for more info.

    You may perform dig - http://www.digwebinterface.com to view and validate the associated records added.
    See, DNS records configuration -

    You may enable and review the logs as outlined in this doc - Troubleshooting deployment and runtime errors to fetch additional info.

    You may add a staticwebapp.config.json file into the root of your project to handle redirecting, see if this makes any difference.

    204851-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.