glean-common-errors

Featured

Diagnose and fix common Glean API errors including indexing failures, search issues, and permission problems. Trigger: "glean error", "glean not indexing", "glean search empty", "debug glean".

AI & Automation 2,266 stars 315 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

# Glean Common Errors ## Overview Glean provides enterprise search across connected data sources with AI-powered results. API integrations involve two distinct token types (indexing vs. client) and a custom datasource model for pushing content. Common errors stem from token type mismatches, permission misconfiguration that silently hides documents from search results, and bulk indexing failures caused by duplicate upload IDs or oversized documents. Stale results are a frequent complaint -- Glean indexes asynchronously, so newly pushed documents may take 1-5 minutes to appear in search. This reference covers authentication, indexing pipeline, and search-time issues. ## Error Reference | Code | Message | Cause | Fix | |------|---------|-------|-----| | `401` | `Unauthorized` | Invalid or expired API token | Regenerate at Admin > Settings > API Tokens | | `403` | `Wrong token type` | Using indexing token for search API | Indexing API needs indexing token; Client API needs client token with `X-Glean-Auth-Type: BEARER` | | `400` | `uploadId already used` | Duplicate bulk upload identifier | Generate a unique UUID per upload run | | `400` | `document too large` | Document body exceeds 100KB limit | Truncate or split content before indexing | | `400` | `invalid datasource` | Datasource not registered | Create datasource first via `adddatasource` endpoint | | `400` | `missing required field` | Document lacks `id` or `title` | Ensure every document has both `id` and `title` fields...

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