question

IvanGargov-7345 avatar image
1 Vote"
IvanGargov-7345 asked IvanGargov-7345 commented

Incomplete response of GET /beta/education/classes for particular class

Making requests to /beta/education/classes/{id} or /beta/education/classes?$filter=externalId eq '{id}' gives an incomplete response with an error in the body of the response.


 {
   "@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes",
   "value": [
     {
       "@odata.id": "https://graph.microsoft.com/v2/11111111111111/directoryObjects/22222222222/Microsoft.DirectoryServices.Group",
       "id": "333333333333333333333",
       "description": "Математика (ООП) - 11.",
       "displayName": "Математика (ООП) - XI. Ж.",
       "mailNickname": "Section_5555555555",
       "classCode": "15420",
       "externalName": "Математика (ООП) - 11. ф ",
       "externalId": "555555555555",
       "externalSource": "sis",
       "externalSourceDetail": "SIS",
       "course": {
         "courseNumber": "4444",
         "description": "Математика (ООП)",
         "displayName": "Математика (ООП)",
         "externalId": "4444",
         "subject": "Математика"
       }{
         "error": {
           "code": "UnknownError",
           "message": "Unexpected token. Check response structure with schema",
           "innerError": {
             "date": "2021-04-14T12:56:25",
             "request-id": "357c7c0f-ef1f-4b15-a928-4126cca3dbf1",
             "client-request-id": "357c7c0f-ef1f-4b15-a928-4126cca3dbf1"
           }
         }
       }
microsoft-graph-education
· 3
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.

I am checking this one, will comment back.

0 Votes 0 ·

Hi,
I have tried to repro the issue, I am unable to do it. For the same API, it indeed seems to return the result whether v1 or beta. Looking at the request id you have provided it indeed seems to be pointing at the error message you have pasted. Considering that I am unable to repro the issue, my suggestion would be to open a support ticket, based on the request ID further debugging can be done.

0 Votes 0 ·

Hi,

Thanks for looking at the issue. As you suggested, I have opened a support ticket for further debugging.

0 Votes 0 ·

1 Answer

WorkNow-4293 avatar image
0 Votes"
WorkNow-4293 answered

We have the same problem with a single class, but it's in the V1.0 instead of beta. We tried Get Group ans List Gorups


{
"@odata.context":
"@odata.id":
"id":
"description": "UML MODELAGEM DE SISTEMAS ORIENTADOS A OBJETO",
"displayName": "UML MODELAGEM DE SISTEMAS ORIENTADOS A OBJETO",
"mailNickname": "Section_2018P00178PNoturno",
"classCode": "2018P00178PNoturno",
"externalName": "UML MODELAGEM DE SISTEMAS ORIENTADOS A OBJETO",
"externalId": "2018P00178PNoturno",
"externalSource": "sis",
"externalSourceDetail": "SIS",
"course": {
"displayName": "UML MODELAGEM DE SISTEMAS ORIENTADOS A OBJETO",
"externalId": "2018P00178PNoturno"
}{
"error": {
"code": "UnknownError",
"message": "Unexpected token. Check response structure with schema",
"innerError": {
"date": "2021-04-28T13:45:05",
"request-id": "296fce9f-ac9f-48d5-b973-cacc534965ec",
"client-request-id": "296fce9f-ac9f-48d5-b973-cacc534965ec"
}
}
}

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.