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

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

palantir-security-basics

Apply Palantir Foundry security best practices for credentials, scopes, and access control. Use when securing API tokens, implementing least privilege access, or auditing Foundry security configuration. Trigger with phrases like "palantir security", "foundry secrets", "secure palantir", "palantir API key security", "foundry scopes".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-incident-runbook

Execute Palantir Foundry incident response with triage, mitigation, and postmortem. Use when responding to Foundry-related outages, API failures, or build pipeline incidents. Trigger with phrases like "palantir incident", "foundry outage", "palantir down", "foundry emergency", "palantir broken".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-install-auth

Install and configure Palantir Foundry SDK authentication with OAuth2 or token auth. Use when setting up a new Foundry integration, configuring API credentials, or initializing the foundry-platform-sdk in your project. Trigger with phrases like "install palantir", "setup palantir", "palantir auth", "configure palantir API key", "foundry SDK setup".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-hello-world

Create a minimal working Palantir Foundry example querying Ontology objects. Use when starting a new Foundry integration, testing your setup, or learning basic Foundry API and Ontology patterns. Trigger with phrases like "palantir hello world", "palantir example", "palantir quick start", "foundry first query".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-sdk-patterns

Apply production-ready Palantir Foundry SDK patterns for Python and TypeScript. Use when implementing Foundry integrations, refactoring SDK usage, or establishing team coding standards for Foundry API calls. Trigger with phrases like "palantir SDK patterns", "foundry best practices", "palantir code patterns", "idiomatic foundry SDK".

2,266 Updated today
jeremylongshore