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,249 stars 312 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

Related Skills