While calling MS Graph API through blazor webassembly app i am getting below error

Akash Doke 0 Reputation points
    "error": {
        "code": "ErrorEntityNotFound",
        "message": "Exception of type 'Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException' was thrown.",
        "innerError": {
            "date": "2023-12-01T16:00:45",
            "request-id": "fd91f85f-1039-425d-9baa-d55ac48353bd",
            "client-request-id": "fd91f85f-1039-425d-9baa-d55ac48353bd"
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,413 questions
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,499 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,640 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sourabh Gupta 800 Reputation points Microsoft Vendor

    Hi @Akash Doke

    Thanks for reaching out!

    Based upon the error message I am assuming that you are trying to call some graph endpoint related to either accessing some profile photo of either a team or individual. or you are trying to update the existing photo. Could you please confirm the same.

    I have tried this API locally and it is working fine when the photo exists. The profile photo is accessed successfully. In case you want to update the photo, please pass the valid binary data for the image and try executing the API. If the issue still persists, I recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better.

    You can raise support ticket from
    [http://aad.portal.azure.com] or https://admin.microsoft.com/#/support/requests.

    You can refer to the following documentation for more details https://learn.microsoft.com/en-us/graph/api/profilephoto-update?view=graph-rest-1.0&tabs=http#:%7E:text=User.ReadWrite.All-,Note,-To%20update%20the

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

  2. Akash Doke 0 Reputation points

    I am trying to get profile picture of user , I am not updating the user photo