mistral-common-errors

Featured

Diagnose and fix Mistral AI common errors and exceptions. Use when encountering Mistral errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "mistral error", "fix mistral", "mistral not working", "debug mistral".

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

# Mistral AI Common Errors ## Overview Quick reference for diagnosing and fixing Mistral AI API errors. Covers HTTP status codes, SDK-specific issues, streaming failures, and tool calling problems with real solutions. ## Prerequisites - Mistral AI SDK installed - `MISTRAL_API_KEY` configured - Access to application logs ## Instructions ### Step 1: Quick Diagnostic ```bash set -euo pipefail # Test API connectivity and auth curl -s -w "\nHTTP Status: %{http_code}\n" \ -H "Authorization: Bearer ${MISTRAL_API_KEY}" \ https://api.mistral.ai/v1/models | jq '.data[].id' 2>/dev/null || echo "FAILED" # Check env echo "Key set: ${MISTRAL_API_KEY:+yes}" echo "Key length: ${#MISTRAL_API_KEY}" ``` ### Step 2: Error Reference --- #### 401 Unauthorized ``` Error: Authentication failed. Invalid API key. ``` **Causes:** Key missing, expired, revoked, or wrong workspace. **Fix:** ```typescript const apiKey = process.env.MISTRAL_API_KEY; if (!apiKey) throw new Error('MISTRAL_API_KEY is not set'); // Test the key const client = new Mistral({ apiKey }); try { await client.models.list(); } catch (e: any) { if (e.status === 401) { console.error('API key invalid — regenerate at console.mistral.ai'); } } ``` **Verify manually:** ```bash set -euo pipefail curl -H "Authorization: Bearer ${MISTRAL_API_KEY}" https://api.mistral.ai/v1/models ``` --- #### 429 Too Many Requests ``` Error: Rate limit exceeded. Retry-After: 60 ``` **Causes:** Exceeded RPM (requests/min) or TPM (t...

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

mistral-install-auth

Install and configure the Mistral AI SDK with authentication. Use when setting up a new Mistral integration, configuring API keys, or initializing Mistral AI in your project. Trigger with phrases like "install mistral", "setup mistral", "mistral auth", "configure mistral API key".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-incident-runbook

Execute Mistral AI incident response procedures with triage, mitigation, and postmortem. Use when responding to Mistral AI-related outages, investigating errors, or running post-incident reviews. Trigger with phrases like "mistral incident", "mistral outage", "mistral down", "mistral on-call", "mistral emergency".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-rate-limits

Implement Mistral AI rate limiting, backoff, and request management. Use when handling rate limit errors, implementing retry logic, or optimizing API request throughput for Mistral AI. Trigger with phrases like "mistral rate limit", "mistral throttling", "mistral 429", "mistral retry", "mistral backoff".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-prod-checklist

Execute Mistral AI production deployment checklist and rollback procedures. Use when deploying Mistral AI integrations to production, preparing for launch, or implementing go-live procedures. Trigger with phrases like "mistral production", "deploy mistral", "mistral go-live", "mistral launch checklist".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-observability

Set up comprehensive observability for Mistral AI with metrics, traces, and alerts. Use when implementing monitoring for Mistral AI operations, setting up dashboards, or configuring alerting for integration health. Trigger with phrases like "mistral monitoring", "mistral metrics", "mistral observability", "monitor mistral", "mistral alerts".

2,266 Updated today
jeremylongshore