onenote-common-errors
Decodes and resolves common OneNote Graph API errors, providing root cause analysis and diagnostic steps for effective debugging.
Install this skill
Security score
The onenote-common-errors skill was audited on May 25, 2026 and we found 21 security issues across 2 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 94 | .api(`/me/onenote/sections/${sectionId}/pages`) |
Template literal with variable interpolation in command context
| 101 | console.error(`Payload size: ${Buffer.byteLength(htmlContent, "utf-8")} bytes`); |
Template literal with variable interpolation in command context
| 115 | return await client.api(`/me/onenote/pages/${pageId}/content`).get(); |
Template literal with variable interpolation in command context
| 118 | console.warn(`Page ${pageId} listed but not accessible (likely deleted)`); |
Template literal with variable interpolation in command context
| 138 | console.error(`Status: ${error.statusCode}`); |
Template literal with variable interpolation in command context
| 139 | console.error(`Code: ${error.code}`); |
Template literal with variable interpolation in command context
| 140 | console.error(`Message: ${error.message}`); |
Template literal with variable interpolation in command context
| 141 | console.error(`Request-ID: ${requestId}`); |
Template literal with variable interpolation in command context
| 142 | console.error(`Date: ${dateHeader}`); |
Template literal with variable interpolation in command context
| 147 | console.error(`Server: ${parsed.serverInfo?.dataCenter ?? "unknown"}`); |
Template literal with variable interpolation in command context
| 149 | console.error(`Diagnostics: ${diagnostics}`); |
Template literal with variable interpolation in command context
| 155 | `For Microsoft support, provide: request-id=${requestId}, date=${dateHeader}` |
External URL reference
| 41 | | | | (3) Malformed JSON in PATCH body | Validate JSON structure matches [update spec](https://learn.microsoft.com/en-us/graph/onenote-update-page) | |
External URL reference
| 43 | | | | (5) Invalid `$filter` OData expression | Check [OData query syntax](https://learn.microsoft.com/en-us/graph/api/resources/onenote-api-overview) | |
External URL reference
| 186 | | 400 on PATCH page | JSON body missing `target` or `action` field | Review [update page spec](https://learn.microsoft.com/en-us/graph/onenote-update-page) | |
External URL reference
| 282 | "https://graph.microsoft.com/v1.0/me/onenote/notebooks" \ |
External URL reference
| 299 | - [OneNote Error Codes](https://learn.microsoft.com/en-us/graph/onenote-error-codes) |
External URL reference
| 300 | - [OneNote API Overview](https://learn.microsoft.com/en-us/graph/api/resources/onenote-api-overview) |
External URL reference
| 301 | - [Graph API Known Issues](https://learn.microsoft.com/en-us/graph/known-issues) |
External URL reference
| 302 | - [OneNote Update Pages](https://learn.microsoft.com/en-us/graph/onenote-update-page) |
External URL reference
| 303 | - [OneNote Best Practices](https://learn.microsoft.com/en-us/graph/onenote-best-practices) |