palantir-common-errors

Featured

Diagnose and fix Palantir Foundry common errors and API exceptions. Use when encountering Foundry errors, debugging failed API calls, or troubleshooting transform build failures. Trigger with phrases like "palantir error", "fix palantir", "foundry not working", "debug foundry", "palantir 401 403".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Palantir Common Errors ## Overview Quick reference for the top 10 most common Foundry API and transform errors with copy-paste solutions. ## Prerequisites - `foundry-platform-sdk` installed - API credentials configured - Access to Foundry build logs or application logs ## Instructions ### Error 1: 401 Unauthorized — Invalid or Expired Token ``` foundry.ApiError: 401 Unauthorized — The provided token is invalid or expired. ``` **Fix:** ```python # Regenerate token in Developer Console # Settings > Tokens > Generate new personal access token # Or re-authenticate with OAuth2: auth = foundry.ConfidentialClientAuth( client_id=os.environ["FOUNDRY_CLIENT_ID"], client_secret=os.environ["FOUNDRY_CLIENT_SECRET"], hostname=os.environ["FOUNDRY_HOSTNAME"], scopes=["api:read-data"], ) auth.sign_in_as_service_user() # Gets a fresh token ``` ### Error 2: 403 Forbidden — Insufficient Scopes ``` foundry.ApiError: 403 Forbidden — Missing required scope: api:ontology-read ``` **Fix:** Add missing scopes in Developer Console > Your App > Scopes. Common scopes: - `api:read-data` — read datasets - `api:write-data` — write datasets - `api:ontology-read` — read Ontology objects - `api:ontology-write` — apply actions ### Error 3: ObjectTypeNotFound ``` foundry.ApiError: 404 ObjectTypeNotFound — Object type 'employee' not found ``` **Fix:** Object type names are `camelCase` API names, not display names. Check Ontology Manager: ```python # List all object types to find the corre...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category