Using Webclient to consume Azure Function App URL Data

Uma Devi Ananthu Vidhyasagar 0 Reputation points
2024-07-24T15:16:56.61+00:00

Hi,

I am using webclient.downloadstring C# to fetch the azure function app URL data.

webclient is not working properly and sometimes I get the 404 not found error and some days it works fine without any changes.

I am not sure what is really wrong . Please let me know how can i fix this ?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,100 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,916 Reputation points
    2024-07-25T07:55:41.7733333+00:00

    @Uma Devi Ananthu Vidhyasagar Thanks for reaching out. If you are getting a 404 not found error when using WebClient to fetch data from an Azure Function App URL, it could be due to a few different reasons.

    Make sure that the URL you are using is correct and that it points to the correct Azure Function App that is in running state.

    can you try using a different method, such as HttpClient, to fetch data from the Azure Function App URL to see if the issue is with the WebClient class.
    User's image

    please try and let me know if this helps!


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.