question

MarcoJunior-1132 avatar image
0 Votes"
MarcoJunior-1132 asked ajkuma-MSFT answered

Request cannot be served in Azure Static Web App

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@MarcoJunior-1132, 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



image.png (4.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Adding more info:

As for as the restart ability, we have a feature request on this and is being tracked here:

Add the ability to restart an app (or just the API) #256

https://github.com/Azure/static-web-apps/issues/522

We apologies for any inconvenience this may have caused.

Thanks for sharing your feedback on this. Kindly let us know how it goes, I'll follow-up with you further.


0 Votes 0 ·