Unable to get page content for oneNote Graph API - microsoft-graph-api

https://graph.microsoft.com/v1.0/me/onenote/pages/{id}/content
is returning
{
"error": {
"code": "19999",
"message": "Something failed, the API cannot share any more information at the time of the request.",
"innerError": {
"request-id": "571dbc03-154a-4ece-aa7b-1fb05c8c31ce",
"date": "2017-07-11T22:49:01"
}
}
}

Sorry Namrata. Looks like we have a bug. Thanks for reporting. I will fix it and get back to you soon.

Related

issue posting #microsoft.graph.exclusionGroupAssignmentTarget

attempting to add an exclusion group via the api in graph explorer.
https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations/da91e7e4-47cf-490a-9b23-4cecacf69d93/assignments
request body
{
"#odata.type": "#microsoft.graph.exclusionGroupAssignmentTarget",
"groupId": "c16283f1-fb74-4e6c-9fc9-27b213b50512"
}
response preview
{
"error": {
"code": "ModelValidationFailure",
"message": "Incompatible type kinds were found. The type 'microsoft.management.services.api.exclusionGroupAssignmentTarget' was found to be of kind 'Complex' instead of the expected kind 'Entity'.",
"innerError": {
"message": "Incompatible type kinds were found. The type 'microsoft.management.services.api.exclusionGroupAssignmentTarget' was found to be of kind 'Complex' instead of the expected kind 'Entity'.",
"date": "2021-10-01T18:10:01",
"request-id": "96cff9fa-bafd-4f87-98e5-69ff814faa8d",
"client-request-id": "f8011c1f-1457-22ae-2e1e-e20842ccec11"
}
}
}

Suddenly graph API - returns 500 error for me/followedSites

The GET https://graph.microsoft.com/v1.0/me/followedSites is returning 500 Internal Server Error
Here are the error details:
{
"error": {
"code": "generalException",
"message": "General exception while processing",
"innerError": {
"date": "2021-06-21T15:32:56",
"request-id": "dc99093b-2426-4f66-a1b2-9a6f180c053c",
"client-request-id": "b43fcb98-3a23-2f5d-90de-f4c009b5c8dd"
}
}
}
You can reproduce this on Graph Explorer
It seems like this is an issue from the Microsoft side they have fixed it. More information is here

Creating Contact returns ResourceNotFound error

I'm getting an error of ResourceNotFound while integrating and calling POST v1.0/me/contacts:
{
"error": {
"code": "ResourceNotFound",
"message": "Resource could not be discovered.",
"innerError": {
"date": "2021-03-01T15:45:47",
"request-id": "76062d8a-e541-4a52-ae08-9b196dd8e07d",
"client-request-id": "dd8b8c41-22bb-2b78-c926-3063ef313ba0"
}
}
}
I get the same from Graph Explorer:
Note: token is used, API permissions given.
Can anyone please guide/help on this issue?

MS graph InvalidDeltaToken on events list next page

I'm getting an error when I call NextLink from the response of first delta.
Any ideas why it's happens?
first call:
https://graph.microsoft.com/beta/users/4ca91597-4091-4cce-856b-7472b3f9ade1/calendars/AAMkAGM3MDdhNGZlLWRjYTUtNGZkYS04NTcxLTU2OTNkZWEwNDlhYQBGAAAAAAAmh2PA4MC8QpGOM1iWfgeZBwCI_1RC5zxoQrQX6X2piZBLAAAAAAEGAACI_1RC5zxoQrQX6X2piZBLAAAAjD53AAA=/events/delta
response:
{
"#odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(event)",
"#odata.nextLink": "https://graph.microsoft.com/beta/users/4ca91597-4091-4cce-856b-7472b3f9ade1/calendars/AAMkAGM3MDdhNGZlLWRjYTUtNGZkYS04NTcxLTU2OTNkZWEwNDlhYQBGAAAAAAAmh2PA4MC8QpGOM1iWfgeZBwCI_1RC5zxoQrQX6X2piZBLAAAAAAEGAACI_1RC5zxoQrQX6X2piZBLAAAAjD53AAA=/events/delta?$skiptoken=S-9EQM7OmIraj-ou9n4yBgQa6fEPxPaBcX7TFg2kKSyrl9s4t08HSSZnFF-gwy4A9E6Yg7ADWLv-z3JJ4D5p_galSKYHzmiN98EJV1ewagGy4vLP_Ccf6Ry5MQoXRx_NxwVr9hFfl2aiymXlEAMXUSGMaX9Yc7O2q6czmAFcCr_ZEL7TGy0sQqgOA7UzNZ64ocJyQRBMUjvuE19KlhqPkA.XaSRYkwmW-IAiW8ABt7Qi1gz7aHGDe2uF-m2RdF2lLM
...}
and on call NextLink I'm getting error:
{
"error": {
"code": "InvalidDeltaToken",
"message": "The value 'NCZUMk42WmtGWmFqZFdSVXh1VUVkb1EzUkNabkJtWVcxS2EwVnpRVUZPVmtWelJEQkNRVUZCUVE9PQ=='
of parameter '$deltaToken' is invalid.",
"innerError": {
"date": "2020-09-27T19:04:42",
"request-id": "6897b163-5d66-4223-8c01-ab40a0417c35",
"client-request-id": "3455e667-c7e7-9c6d-e18e-5c94c37150c8"
}
} }
UPD.1
problem with header:
rPrefer = odata.maxpagesize=50
if you are MS's developer please open ticket.

Planner - Update task: UnknownError

I'm trying to update a task in planner using beta graph api.
My call is PATCH: https://graph.microsoft.com/beta/tasks/dBwDqUFHpkCetYiUluQlnJYACAzh
The json object looks like this:
{
"bucketId": "Tbi8MJwWwEu4SUYdrqt235YAEkke",
"title": "New Title"
}
And the response:
Status Code: 412
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "43132ef7-9a88-4030-b8ad-873d2dc04ff0",
"date": "2017-02-21T11:03:59"
}
}
}
Now I know that status code 412 means Precondition Failed, and I've set the If-Match Request Header. Do you have any other suggestion?
I've also tried the code in https://graph.microsoft.io/en-us/graph-explorer so it is clear that I'm missing something.
Thank you!

Resources