I am going to guess that you forgot to add https://portal.azure.com to your CORS allowed origins. I just ran into the same issue. Check this article for more info: https://learn.microsoft.com/en-us/answers/questions/1304180/unable-to-test-run-azure-function-form-the-portal
{"message":"Failed to fetch","stack":"TypeError: Failed to fetch\n at https://portal.azure.com/Content/Dynamic/E97lPFqfRZHr.js:229:21858","isError":true}
Zakir, Ali Asgar
10
Reputation points
Hi Team,
I aa facing the above error message when I Test/Run my azure function from Portal. I have tried for different sets of data, for few sets the same azure function works fine but for few it gives this error. Tried checking the logs as well but there isn't any log which says that an error occurred. Tried several ways to figure the issue but no luck. Also I have checked the container for presence of data and found that the data is present as well.
Thanks in advance!!