We are encountering an error with the OneNote Microsoft Graph API when calling the following endpoints:
GET - https://graph.microsoft.com/v1.0/me/onenote/notebooks
POST - https://graph.microsoft.com/v1.0/me/onenote/sections/{section-id}/pages
Below is the sample response for GET endpoint (onenote/notebooks)-
Forbidden - {"error":{"code":"UnknownError","message":"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n <meta content='text/html; charset=utf-8' http-equiv='content-type' />\n <style type='text/css'>\n body {\n font-family: Arial;\n margin-left: 40px;\n }\n\n img {\n border: 0 none;\n }\n\n #content {\n margin-left: auto;\n margin-right: auto\n }\n\n #message h2 {\n font-size: 20px;\n font-weight: normal;\n color: #000000;\n margin: 34px 0px 0px 0px\n }\n\n #message p {\n font-size: 13px;\n color: #000000;\n margin: 7px 0px 0px0px\n }\n\n #errorref {\n font-size: 11px;\n color: #737373;\n margin-top: 41px\n }\n </style>\n <title>Service unavailable</title>\n</head>\n\n<body>\n <div id='content'>\n <div id='message'>\n <h2>The request is blocked.</h2>\n </div>\n <div id='errorref'>\n <span>20231010T073458Z-xwfxas7svt5m5e7g23u67cudfg000000009g00000002dwux </span>\n </div>\n </div>\n</body>\n</html>\n","innerError":{"date":"2023-10-10T07:34:58","request-id":"d038afb6-79bc-4e9d-9d37-589b5b6980e9","client-request-id":"c441a5c9-2cac-4a9b-bf9e-08b3af58b2fb"}}}
Below is the sample response for POST endpoint (onenote/sections)-
Forbidden - {"error":{"code":"UnknownError","message":"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n <meta content='text/html; charset=utf-8' http-equiv='content-type' />\n <style type='text/css'>\n body {\n font-family: Arial;\n margin-left: 40px;\n }\n\n img {\n border: 0 none;\n }\n\n #content {\n margin-left: auto;\n margin-right: auto\n }\n\n #message h2 {\n font-size: 20px;\n font-weight: normal;\n color: #000000;\n margin: 34px 0px 0px 0px\n }\n\n #message p {\n font-size: 13px;\n color: #000000;\n margin: 7px 0px 0px0px\n }\n\n #errorref {\n font-size: 11px;\n color: #737373;\n margin-top: 41px\n }\n </style>\n <title>Service unavailable</title>\n</head>\n\n<body>\n <div id='content'>\n <div id='message'>\n <h2>The request is blocked.</h2>\n </div>\n <div id='errorref'>\n <span>20231010T100356Z-29qa3v8nd909b5gvmupzg6tphs00000003hg00000000awun </span>\n </div>\n </div>\n</body>\n</html>\n","innerError":{"date":"2023-10-10T10:03:56","request-id":"77f8a5d7-f16c-475a-83c5-049ee2d78a2d","client-request-id":"38fa5229-a935-4559-9f28-d865480601f1"}}}
We are getting 403 with Error code UnknownError along with below error response -
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
<style type='text/css'>
body {
font-family: Arial;
margin-left: 40px;
}
img {
border: 0 none;
}
#content {
margin-left: auto;
margin-right: auto
}
#message h2 {
font-size: 20px;
font-weight: normal;
color: #000000;
margin: 34px 0px 0px 0px
}
#message p {
font-size: 13px;
color: #000000;
margin: 7px 0px 0px0px
}
#errorref {
font-size: 11px;
color: #737373;
margin-top: 41px
}
</style>
<title>Service unavailable</title>
</head>
<body>
<div id='content'>
<div id='message'>
<h2>The request is blocked.</h2>
</div>
<div id='errorref'>
<span>20231010T094451Z-p7zdzdefep22vfgqztzyv8x3u0000000039g00000001tu5p </span>
</div>
</div>
</body>
</html>
We have noticed significant increase of this error since yesterday for multiple tenants. Can someone offer some guidance on how to resolve this issue?