navan-common-errors

Featured

Diagnose and fix common Navan API errors with targeted fix procedures. Use when an API call returns an unexpected HTTP error or when debugging production failures. Trigger with "navan error", "fix navan", "debug navan", "navan 401", "navan 403", "navan 429".

AI & Automation 2,944 stars 440 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

# Navan Common Errors ## Overview Diagnose and resolve Navan API errors using targeted fix procedures. All errors surface as raw HTTP status codes since Navan has **no public SDK** — this guide covers 401, 403, 404, 429, 500, and 503 with curl-based diagnostics. **Purpose:** Identify the root cause of a Navan API error and apply the correct fix. ## Prerequisites - Navan API credentials configured (see `navan-install-auth`) - `curl` and `jq` available in your terminal - Environment variables set: `NAVAN_CLIENT_ID`, `NAVAN_CLIENT_SECRET`, `NAVAN_BASE_URL` ## Instructions ### Error 401 — Unauthorized (Invalid or Expired OAuth Token) **Root causes:** 1. OAuth token has expired (tokens have a limited `expires_in` window) 2. `client_secret` was rotated in the Navan dashboard but not updated in `.env` 3. Malformed `Authorization` header (missing `Bearer` prefix) 4. Token from a different Navan organization **Diagnostic steps:** ```bash # 1. Verify credentials can still obtain a token curl -s -X POST https://api.navan.com/ta-auth/oauth/token \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "grant_type=client_credentials&client_id=$NAVAN_CLIENT_ID&client_secret=$NAVAN_CLIENT_SECRET" \ | python3 -c "import sys,json; d=json.load(sys.stdin); print('TOKEN OK' if 'access_token' in d else f'FAIL: {d}')" # 2. Check if existing token is expired echo "Token var length: ${#NAVAN_TOKEN}" ``` **Fix:** Re-run the token exchange. If that also returns 401, regenerate cre...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category