attio-common-errors

v2026.09.24

Diagnose Attio REST API failures from status, structured error fields, endpoint contract, and request context without exposing customer data. Use when an Attio request returns 400, 401, 403, 404, 409, 422, 429, or 5xx. Trigger with "Attio error", "Attio request failed", or "debug Attio API".

GitHub
安装命令
npx skhub add jeremylongshore/attio-common-errors
Markdown
SKILL.md

Attio Error Triage

Overview

This skill classifies an Attio failure before changing code or credentials. It preserves the response's structured fields while keeping tokens and CRM values out of diagnostics.

Prerequisites

  • The HTTP method, path template, status, and redacted response body
  • The endpoint's documented required scopes
  • The request's pagination mode and mutation semantics
  • A correlation or application request identifier when available

Tool Discipline

Use Read, Glob, and Grep to locate the caller, response parser, retry policy, and logs. Use WebFetch only for current official Attio documentation. Use Write or Edit only after the failing contract and safe verification path are known.

Current Contract

Attio error responses can include status_code, type, code, and message. Diagnose from observed fields instead of inventing a fixed code list; endpoint references remain authoritative for request shape and scopes.

Authentication

Confirm that a Bearer token exists at runtime and belongs to the intended workspace. For 401, rotate or replace the invalid credential; for 403, compare granted scopes with the endpoint's required scopes before requesting any change.

Instructions

  1. Capture method, path template, status, response content type, and redacted structured error fields.
  2. Reconcile the request with the exact endpoint reference, including path slug versus UUID and body envelope.
  3. Classify authentication, authorization, validation, uniqueness, not-found, throttling, or provider failure.
  4. For 429, parse Retry-After as an HTTP date and retry only after the indicated time.
  5. For ambiguous 5xx failures, preserve a minimal reproduction and check Attio status before changing business logic.
  6. Apply the smallest correction and repeat the same bounded request.

Approval Boundaries

Do not broaden scopes, rotate a shared production credential, replay an ambiguous mutation, or expose customer payloads while troubleshooting without the responsible owner and a recovery plan.

Decision Table

SignalLikely classSafe next check
400 or 422Shape or attribute-value validationCompare body and attribute type with endpoint docs.
401Missing or invalid tokenInspect credential injection without printing the token.
403Insufficient scopeCompare exact required scopes.
404Wrong resource identifierResolve current object, list, record, or entry ID.
409Uniqueness conflictInspect the documented uniqueness boundary.
429Global or score-based throttleHonor Retry-After; simplify expensive queries.
5xxProvider or transient failureBound retries and retain redacted evidence.

Output

Return a redacted failure fingerprint, diagnosis, evidence, minimal correction, replay result, and any remaining uncertainty.

Error Handling

ConditionResponse
Response is not JSONPreserve status and content type; do not force JSON parsing.
Token appears in evidenceStop and redact before storing or sharing it.
Retry repeats a permanent 4xxStop retrying and fix the request contract.
Resource identity is uncertainResolve it with a read-only discovery request.

Examples

Input:

method=POST; path=/v2/objects/companies/records/query; status=403; code=forbidden

Expected handoff:

class=authorization; missing-scope=confirmed-from-endpoint; replay=pass

This result ties the correction to endpoint evidence and a safe replay.

Resources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.curated/attio-common-errors

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8