agentsclimarketplace

Lucidchart common errors

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/lucidchart-pack/skills/lucidchart-common-errors

'Diagnose and fix Lucidchart common errors.From its SKILL.md

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill lucidchart-common-errors

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.7 KB, 989 tokens by cl100k_base, as published. Nobody here has run it

Lucidchart Common Errors

Overview

Lucidchart's API enables programmatic diagram creation, document management, shape manipulation, and team collaboration workflows. Common integration errors include OAuth token expiration during long-running batch operations, document lock conflicts when multiple users edit simultaneously, and shape API 422 errors from invalid geometry or missing parent references. The OAuth token refresh flow is the most common stumbling block -- access tokens expire after 60 minutes, and batch operations that exceed this window fail mid-run. This reference covers authentication, document lifecycle, and shape-level validation issues for the Lucid developer platform.

Error Reference

CodeMessageCauseFix
401Token expiredOAuth2 access token expiredUse refresh token to obtain new access token
403Insufficient scopesOAuth app missing required permission scopesRe-authorize with lucidchart.document.content and needed scopes
404Document not foundInvalid document ID or user lacks accessVerify document ID and that API user has viewer/editor role
409Document lockedAnother user is actively editingWait for lock release or use force-unlock with admin privileges
422Invalid shape dataShape position/size out of bounds or missing parentValidate x/y/width/height > 0; ensure parent page exists
422Invalid connectionSource or target shape ID does not existCreate shapes before connecting them; verify shape IDs
429Rate limitedExceeded 100 requests/minuteImplement exponential backoff; batch shape operations
500Export failedPDF/PNG export timed out on complex diagramReduce page count or simplify shapes before export

Error Handler

interface LucidchartError {
  code: number;
  message: string;
  category: "auth" | "rate_limit" | "validation" | "conflict";
}

function classifyLucidchartError(status: number, body: string): LucidchartError {
  if (status === 401 || status === 403) {
    return { code: status, message: body, category: "auth" };
  }
  if (status === 429) {
    return { code: 429, message: "Rate limited", category: "rate_limit" };
  }
  if (status === 409) {
    return { code: 409, message: body, category: "conflict" };
  }
  return { code: status, message: body, category: "validation" };
}

Debugging Guide

Authentication Errors

Lucidchart uses OAuth2 with access and refresh tokens. Access tokens expire after 60 minutes. Always implement token refresh logic. A 403 typically means missing OAuth scopes rather than invalid credentials -- check the scopes parameter in your authorization URL against the API endpoints you are calling.

Rate Limit Errors

The API enforces 100 requests/minute per OAuth token. Shape creation in bulk should use batch endpoints. Export operations (PDF, PNG) count against the same limit. Use Retry-After header and implement exponential backoff starting at 1 second.

Validation Errors

Shape creation requires valid x, y, width, and height values (all positive integers). Zero or negative values return 422. Connections require both source and target shape IDs to exist on the same page -- cross-page connections are not supported. Page references must use valid page IDs from the document; list pages first before creating shapes.

Error Handling

ScenarioPatternRecovery
OAuth token expired mid-batch401 after N successful callsRefresh token, resume from last successful operation
Document locked by teammate409 on write operationsPoll lock status every 10s; notify user if persistent
Shape API 422Invalid geometry valuesValidate all shape coordinates are positive before API call
Export timeout on large diagram500 on PDF/PNG exportExport individual pages instead of full document
Connection fails between shapesTarget shape not yet createdCreate all shapes first, then create connections

Quick Diagnostic

# Verify OAuth token validity
curl -s -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer $LUCID_ACCESS_TOKEN" \
  https://api.lucid.co/v1/users/me

Resources

Next Steps

See lucidchart-debug-bundle.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.