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,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

# 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
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

navan-incident-runbook

Use when responding to Navan platform incidents — flight cancellations, booking API failures, expense sync outages, or OAuth authentication errors. Trigger with "navan incident runbook" or "navan outage response".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-install-auth

Set up OAuth 2.0 authentication for the Navan REST API. Use when configuring a new Navan integration or rotating API credentials. Trigger with "install navan", "setup navan auth", "navan credentials", "navan oauth".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-security-basics

Secure Navan API credentials with OAuth 2.0 best practices, SSO/SAML, and SCIM provisioning. Use when hardening a Navan integration, rotating credentials, or configuring identity provider SSO. Trigger with "navan security", "navan sso", "navan credentials", "navan scim".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-rate-limits

Implement adaptive rate-limiting for the Navan REST API with exponential backoff and request queuing. Use when building bulk data operations or encountering 429 errors from Navan. Trigger with "navan rate limits", "navan throttling", "navan 429".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-prod-checklist

Use when validating production readiness for a Navan API integration — credential rotation, alerting, rate limits, SSO, SCIM, and compliance audit trails. Trigger with "navan prod checklist" or "navan production readiness".

2,266 Updated today
jeremylongshore