{"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 0 Reputation points
2024-05-15T09:49:59.0866667+00:00

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!!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,470 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,534 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Robert Jan Lub 0 Reputation points
    2024-06-10T12:57:44.6666667+00:00

    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

    0 comments No comments