notion-common-errors

Featured

Diagnose and fix Notion API errors by HTTP status code and error code. Use when encountering Notion errors, debugging failed requests, or troubleshooting integration access, rate limiting, or validation issues. Trigger with phrases like "notion error", "fix notion", "notion not working", "debug notion", "notion 400", "notion 429".

AI & Automation 2,274 stars 319 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Notion Common Errors ## Overview Quick reference for all Notion API error codes with exact HTTP statuses, error bodies, and fixes. The API returns errors as JSON with three fields: ```json { "object": "error", "status": 400, "code": "validation_error", "message": "Title is not a property that exists." } ``` All requests require `Authorization: Bearer <token>` and `Notion-Version: 2022-06-28` headers. ## Prerequisites - `@notionhq/client` installed (`npm install @notionhq/client`) - `NOTION_TOKEN` environment variable set (internal integration token starting with `ntn_` or `secret_`) - Target pages/databases shared with the integration via the Connections menu ## Instructions ### Step 1: Identify the Error Run the diagnostic script below or check your application logs. Match the HTTP status and `code` field to the sections that follow. ### Step 2: Match Error Code and Apply Fix --- ### 401 — `unauthorized` ```json {"object": "error", "status": 401, "code": "unauthorized", "message": "API token is invalid."} ``` **Cause:** Token is missing, malformed, expired, or revoked. **Fix:** ```bash # Verify token is set echo ${NOTION_TOKEN:+SET} # Test directly curl -s https://api.notion.com/v1/users/me \ -H "Authorization: Bearer ${NOTION_TOKEN}" \ -H "Notion-Version: 2022-06-28" | jq . ``` If the response shows your integration bot user, the token is valid. Otherwise regenerate at [notion.so/my-integrations](https://www.notion.so/my-integrations). Tokens...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

notion-debug-bundle

Collect Notion API diagnostic info for troubleshooting and support tickets. Use when encountering persistent API issues, token/auth failures, page access problems, or preparing diagnostic bundles for Notion support. Trigger with phrases like "notion debug", "notion diagnostic", "notion support bundle", "collect notion logs", "notion troubleshoot".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-known-pitfalls

Common Notion API mistakes: wrong page ID format (dashes), rich text array structure, block children not returned with page, pagination required for all lists, 3 req/sec shared across endpoints, not sharing pages with integration. Use when debugging or reviewing Notion code. Trigger with phrases like "notion mistakes", "notion pitfalls", "notion common errors", "notion gotchas", "notion debugging".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-advanced-troubleshooting

Deep debugging for Notion API: response inspection, permission chain tracing, property type mismatches, pagination edge cases, and block nesting limits. Use when standard troubleshooting fails or investigating intermittent errors. Trigger with phrases like "notion deep debug", "notion permission trace", "notion property mismatch", "notion pagination bug", "notion nesting limit".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-security-basics

Apply Notion API security best practices for integration tokens, OAuth2 flows, least-privilege capabilities, and page-level access control. Use when securing integration tokens, configuring OAuth2 for public integrations, rotating credentials, or auditing which pages an integration can access. Trigger with phrases like "notion security", "notion secrets", "secure notion", "notion API key security", "notion token rotation", "notion OAuth2", "notion permissions audit".

2,274 Updated today
jeremylongshore
AI & Automation Featured

onenote-common-errors

Decode and fix every common OneNote Graph API error with root cause analysis. Use when debugging 400, 403, 404, 429, 500, 502, or 507 errors from OneNote API. Trigger with "onenote error", "onenote 403", "onenote debug", "graph api error onenote".

2,274 Updated today
jeremylongshore