question

RikVercauteren-6059 avatar image
1 Vote"
RikVercauteren-6059 asked RamaMohanaCharyAkavarapu-4424 answered

Microssoft Graph explore raises an error when fetching next page with results

Hello,

when calling the query 'https://graph.microsoft.com/v1.0/groups?' it is possible to fetch the next page of results by coping the @odata.nextLink into the query field in the explorer interface.

On the other hand, if I query shifts data a by :

"https://graph.microsoft.com/v1.0/teams/8b6fc6da-bb5b-4fcf-9351-3e0ecae54528`/schedule/shifts"

the first page off results is shown,

66269-image.png



when i try to get te results of the second page, putting the odata-link as query - following error is raised:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2021-02-10T08:58:30",
"request-id": "2db3cb4b-ab44-49e7-a5fe-6717da25f687",
"client-request-id": "2aea9d24-c4be-7948-c531-fc140bae16c3"
}
}
}

What can I do to solve this problem?


office-teams-app-devmicrosoft-graph-teamworkmicrosoft-graph-explorer
image.png (27.9 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It looks that the provide odata link is too long.

The link for fetching the groups has a lenght off 273 characters.
The odatalink for shifts has a length of 9038 characters.

Error messages = Request-Uri Too Long - 414 - 192ms




0 Votes 0 ·
Deva-MSFT avatar image Deva-MSFT RikVercauteren-6059 ·

Thanks Rik for the detailed info. Adding right tags/teams to assist.

0 Votes 0 ·

Hi @RikVercauteren-6059, Sorry for the delayed response.
I tried to repro your issue but could not. For me calling https://graph.microsoft.com/v1.0/groups and then @odata.nextLink, is giving me response with OK 202

0 Votes 0 ·

@RikVercauteren-6059 , Any more updates on this?

0 Votes 0 ·

1 Answer

RamaMohanaCharyAkavarapu-4424 avatar image
0 Votes"
RamaMohanaCharyAkavarapu-4424 answered

Hi @RikVercauteren-6059,

Posting the Answer for better knowledge
Copying from @SaontiMSFT-5720 comments,

I tried to repro your issue but could not. For me calling https://graph.microsoft.com/v1.0/groups and then @odata.nextLink, is giving me response with OK 202

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.