Skip to content
OpenSmartRoute
Skillv1.0.0

gamma-common-errors

Debug and resolve common Gamma API errors. Use when encountering authentication failures, rate limits, generation errors, or unexpected API responses. Trigger with phrases like "gamma error", "gamma n

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/gamma-common-errors/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill gamma-common-errors. Copyright stays with the author (MIT).

Gamma Common Errors

Instructions

Classify the failure as access, content generation, publish/share, integration, quota, or availability; reproduce safely in staging; apply the smallest reversible correction; verify recovery and safe failure behavior.

Output

Return an opaque correlation ID, error category, corrective action, verification, owner, and follow-up. Keep private content, viewer details, and credentials out of evidence.

Error Handling

Pause sharing/publishing on permission, destination, or privacy failures; use bounded retries for transient errors and rollback before replaying content actions.

Examples

Use a fictional presentation to trigger a controlled publish error, restore the staging configuration, and verify no external audience received content.

Overview

Reference guide for debugging and resolving common Gamma API errors.

Prerequisites

  • Active Gamma integration
  • Access to logs and error messages
  • Understanding of HTTP status codes

Error Reference

Authentication Errors (401/403)

// Error: Invalid API Key
{
  "error": "unauthorized",
  "message": "Invalid or expired API key"
}

Solutions:

  1. Verify API key in Gamma dashboard
  2. Check environment variable is set: echo $GAMMA_API_KEY
  3. Ensure key hasn't been rotated
  4. Check for trailing whitespace in key

Rate Limit Errors (429)

// Error: Rate Limited
{
  "error": "rate_limited",
  "message": "Too many requests",
  "retry_after": 60
}

Solutions:

  1. Implement exponential backoff
  2. Check rate limit headers: X-RateLimit-Remaining
  3. Upgrade plan for higher limits
  4. Queue requests with delays
async function withRetry(fn: () => Promise<any>, maxRetries = 3) {
  for (let i = 0; i < maxRetries; i++) {
    try {
      return await fn();
    } catch (err) {
      if (err.code === 'rate_limited' && i < maxRetries - 1) {
        const delay = (err.retryAfter || Math.pow(2, i)) * 1000;  # 1000: 1 second in ms
        await new Promise(r => setTimeout(r, delay));
        continue;
      }
      throw err;
    }
  }
}

Generation Errors (400/500)

// Error: Generation Failed
{
  "error": "generation_failed",
  "message": "Unable to generate presentation",
  "details": "Content too complex"
}

Solutions:

  1. Simplify prompt or reduce slide count
  2. Remove special characters from content
  3. Check content length limits
  4. Try different style setting

Timeout Errors

// Error: Request Timeout
{
  "error": "timeout",
  "message": "Request timed out after 30000ms"
}

Solutions:

  1. Increase client timeout setting
  2. Use async job pattern for large presentations
  3. Check network connectivity
  4. Reduce request complexity
const gamma = new GammaClient({
  apiKey: process.env.GAMMA_API_KEY,
  timeout: 60000, // 60 seconds  # 60000: 1 minute in ms
});

Export Errors

// Error: Export Failed
{
  "error": "export_failed",
  "message": "Unable to export presentation",
  "format": "pdf"
}

Solutions:

  1. Verify presentation exists and is complete
  2. Check supported export formats
  3. Ensure no pending generation jobs
  4. Try exporting with lower quality setting

Debugging Tools

Enable Debug Logging

const gamma = new GammaClient({
  apiKey: process.env.GAMMA_API_KEY,
  debug: true, // Logs all requests/responses
});

Check API Status

const status = await gamma.status();
console.log('API Status:', status.healthy ? 'OK' : 'Issues');
console.log('Services:', status.services);

Error Handling Pattern

import { GammaError, RateLimitError, AuthError } from '@gamma/sdk';

try {
  const result = await gamma.presentations.create({ ... });
} catch (err) {
  if (err instanceof AuthError) {
    console.error('Check your API key');
  } else if (err instanceof RateLimitError) {
    console.error(`Retry after ${err.retryAfter}s`);
  } else if (err instanceof GammaError) {
    console.error('API Error:', err.message);
  } else {
    throw err;
  }
}

Resources

Next Steps

Proceed to gamma-debug-bundle for comprehensive debugging tools.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-gamma-common-errors/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-gamma-common-errors.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-gamma-common-errors",
  "kind": "skill",
  "name": "gamma-common-errors",
  "description": "Debug and resolve common Gamma API errors. Use when encountering authentication failures, rate limits, generation errors, or unexpected API responses. Trigger with phrases like \"gamma error\", \"gamma not working\", \"gamma API error\", \"gamma debug\", \"gamma troubleshoot\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding",
      "customer_support"
    ],
    "tags": [
      "skill-md",
      "saas",
      "gamma",
      "api",
      "debugging",
      "authentication",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Debug and resolve common Gamma API errors. Use when encountering authentication failures, rate limits, generation errors, or unexpected API responses. Trigger with phrases like \"gamma error\", \"gamma not working\", \"gamma API error\", \"gamma debug\", \"gamma troubleshoot\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/.curated/gamma-common-errors/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/gamma-common-errors/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/gamma-common-errors/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Gamma Common Errors\n\n## Instructions\n\nClassify the failure as access, content generation, publish/share, integration, quota, or availability; reproduce safely in staging; apply the smallest reversible correction; verify recovery and safe failure behavior.\n\n## Output\n\nReturn an opaque correlation ID, error category, corrective action, verification, owner, and follow-up. Keep private content, viewer details, and credentials out of evidence.\n\n## Error Handling\n\nPause sharing/publishing on permission, destination, or privacy failures; use bounded retries for transient errors and rollback before ",
  "cost": {
    "context_tokens": 1092
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-gamma-common-errors/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.