jsonmicrosoft-graph-apimicrosoft-graph-batch

Graph explorer fails with batch


Using Graph Explorer I get the photo of a group with request https://graph.microsoft.com/v1.0/groups/12345678/photo/$value. Response preview shows the photo correctly.

When trying to get the photo of the same group using batch https://graph.microsoft.com/v1.0/$batch

{
  "requests": [
    {
      "id":"12345678",
      "method":"GET",
      "url":"/groups/12345678/photo/$value"
    }
  ]
}

I get an error message "We had an issue sending this request to the Graph API. For assistance, connect with us on StackOverflow..."

This does not occur with all the groups. Is there something wrong with batch?


Solution

  • There is a bug in the batch api regarding pjpeg images. Will be fixed soon. similar issue with answer