0

I am getting errors while combining requests in one HTTP call. I had follow the official document from Here

I got this error

enter image description here

Workflow

  1. Load all MS chats for logged in MS user
  2. Loop trough combining 20 requests and call batch APIs
  3. I got above error sometime

Please provide some suggestions

Thanks

Kishan Vaishnani
  • 234
  • 1
  • 12

1 Answers1

1

One of the workaround you may follow : Based on the given MS DOC we have tried with microsoft graph api and tested successfully.

We have tried the given MS DOC example with below request body ;

{
    "requests": [
        {
            "id": "1",
            "method": "GET",
            "url": "/me/drive/root:/{file}:/content"
        },
        {
            "id": "2",
            "method": "GET",
            "url": "/me/planner/tasks"
        },
        {
            "id": "3",
            "method": "GET",
            "url": "/groups/{id}/events"
        },
        {
            "id": "4",
            "url": "/me",
            "method": "PATCH",
            "body": {
                "city": "Redmond"
            },
            
            "headers": {
                "Content-Type": "application/json"
            }
        }
    ]
}

In request header we have added the key value and run the query as below:

enter image description here

NOTE:- Make sure that you have formatted correctly in your request body while making an API call.

For more information please refer the below links:-

AjayKumarGhose
  • 4,257
  • 2
  • 4
  • 15