[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M794AW4WX2GTGY6K44JDHX6M":3,"skill-same:01M794AW4WX2GTGY6K44JDHX6M":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M794AW4WX2GTGY6K44JDHX6M","perplexity-common-errors",null,"Diagnose and fix Perplexity Sonar API errors and exceptions.\nUse when encountering Perplexity errors, debugging failed requests,\nor troubleshooting integration issues.\nTrigger with phrases like \"perplexity error\", \"fix perplexity\",\n\"perplexity not working\", \"debug perplexity\", \"perplexity 429\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--perplexity-pack--perplexity-common-errors\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: perplexity-common-errors\ndescription: |\n  Diagnose and fix Perplexity Sonar API errors and exceptions.\n  Use when encountering Perplexity errors, debugging failed requests,\n  or troubleshooting integration issues.\n  Trigger with phrases like \"perplexity error\", \"fix perplexity\",\n  \"perplexity not working\", \"debug perplexity\", \"perplexity 429\".\nallowed-tools: Read, Grep, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, perplexity, debugging]\n---\n# Perplexity Common Errors\n\n## Overview\nQuick reference for the most common Perplexity Sonar API errors, their root causes, and fixes. All Perplexity errors follow the OpenAI error format since the API is OpenAI-compatible.\n\n## Prerequisites\n- `PERPLEXITY_API_KEY` environment variable set\n- `curl` available for diagnostic commands\n\n## Error Reference\n\n### 401 Unauthorized — Invalid API Key\n```json\n{\"error\": {\"message\": \"Invalid API key\", \"type\": \"authentication_error\", \"code\": 401}}\n```\n\n**Causes:** Key missing, expired, revoked, or doesn't start with `pplx-`.\n\n**Fix:**\n```bash\nset -euo pipefail\n# Verify key is set and has correct prefix\necho \"${PERPLEXITY_API_KEY:0:5}\"  # Should print \"pplx-\"\n\n# Test key directly\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n  -H \"Authorization: Bearer $PERPLEXITY_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"test\"}],\"max_tokens\":5}' \\\n  https:\u002F\u002Fapi.perplexity.ai\u002Fchat\u002Fcompletions\n# 200 = valid, 401 = invalid key\n```\n\nRegenerate at [perplexity.ai\u002Fsettings\u002Fapi](https:\u002F\u002Fwww.perplexity.ai\u002Fsettings\u002Fapi).\n\n---\n\n### 429 Too Many Requests — Rate Limited\n```json\n{\"error\": {\"message\": \"Rate limit exceeded\", \"type\": \"rate_limit_error\", \"code\": 429}}\n```\n\n**Causes:** Exceeded requests per minute (RPM). Most tiers allow 50 RPM. Perplexity uses a leaky bucket algorithm.\n\n**Fix:**\n```typescript\nasync function withBackoff\u003CT>(fn: () => Promise\u003CT>, maxRetries = 5): Promise\u003CT> {\n  for (let i = 0; i \u003C= maxRetries; i++) {\n    try {\n      return await fn();\n    } catch (err: any) {\n      if (err.status !== 429 || i === maxRetries) throw err;\n      const delay = Math.pow(2, i) * 1000 + Math.random() * 500;\n      console.log(`Rate limited. Retrying in ${delay.toFixed(0)}ms...`);\n      await new Promise(r => setTimeout(r, delay));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\nSee `perplexity-rate-limits` for queue-based solutions.\n\n---\n\n### 400 Bad Request — Invalid Model\n```json\n{\"error\": {\"message\": \"Invalid model: gpt-4\", \"type\": \"invalid_request_error\"}}\n```\n\n**Cause:** Using a non-Perplexity model name.\n\n**Valid models:** `sonar`, `sonar-pro`, `sonar-reasoning-pro`, `sonar-deep-research`.\n\n---\n\n### 400 Bad Request — Invalid search_domain_filter\n```json\n{\"error\": {\"message\": \"search_domain_filter must contain at most 20 domains\"}}\n```\n\n**Cause:** Exceeding the 20-domain limit, or mixing allowlist (no prefix) with denylist (`-` prefix).\n\n**Fix:** Use either allowlist OR denylist mode, not both:\n```typescript\n\u002F\u002F Allowlist: only these domains\nsearch_domain_filter: [\"python.org\", \"docs.python.org\"]\n\n\u002F\u002F Denylist: exclude these domains\nsearch_domain_filter: [\"-reddit.com\", \"-quora.com\"]\n```\n\n---\n\n### Empty Citations Array\nNot an error, but a common surprise.\n\n**Causes:** Query too abstract, non-factual question, or model couldn't find relevant sources.\n\n**Fix:**\n```typescript\n\u002F\u002F BAD: abstract query yields no citations\n\"Tell me about technology\"\n\n\u002F\u002F GOOD: specific factual query\n\"What are the key features of TypeScript 5.5 released in 2025?\"\n```\n\nUse `sonar-pro` for more citations (2x average citation count vs `sonar`).\n\n---\n\n### Timeout \u002F Hanging Request\n**Causes:** Complex query with `sonar-pro` or `sonar-deep-research`. Sonar: 1-3s typical. Sonar-pro: 3-8s. Deep research: 10-60s.\n\n**Fix:**\n```typescript\nconst controller = new AbortController();\nconst timeout = setTimeout(() => controller.abort(), 15000);\n\ntry {\n  const response = await perplexity.chat.completions.create(\n    { model: \"sonar\", messages: [{ role: \"user\", content: query }] },\n    { signal: controller.signal }\n  );\n  return response;\n} finally {\n  clearTimeout(timeout);\n}\n```\n\n---\n\n### 402 Payment Required — No Credits\n```json\n{\"error\": {\"message\": \"Insufficient credits\", \"type\": \"billing_error\"}}\n```\n\n**Cause:** Account has no API credits remaining.\n\n**Fix:** Add credits at [perplexity.ai\u002Fsettings\u002Fapi](https:\u002F\u002Fwww.perplexity.ai\u002Fsettings\u002Fapi).\n\n## Diagnostic Commands\n```bash\nset -euo pipefail\n# Quick API health check\ncurl -s -w \"\\nHTTP %{http_code} in %{time_total}s\\n\" \\\n  -H \"Authorization: Bearer $PERPLEXITY_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}],\"max_tokens\":5}' \\\n  https:\u002F\u002Fapi.perplexity.ai\u002Fchat\u002Fcompletions\n\n# Check if key env var is set\nenv | grep PERPLEXITY\n\n# Test DNS resolution\ndig api.perplexity.ai +short\n```\n\n## Error Handling\n| HTTP Code | Error Type | Retry? | Action |\n|-----------|-----------|--------|--------|\n| 400 | `invalid_request_error` | No | Fix request parameters |\n| 401 | `authentication_error` | No | Regenerate API key |\n| 402 | `billing_error` | No | Add credits |\n| 429 | `rate_limit_error` | Yes | Exponential backoff |\n| 500+ | `server_error` | Yes | Retry after 2-5 seconds |\n\n## Output\n- Identified error cause from HTTP status and error type\n- Applied fix or workaround\n- Verified resolution with diagnostic commands\n\n## Resources\n- [Perplexity Error Handling Guide](https:\u002F\u002Fdocs.perplexity.ai\u002Fguides\u002Fperplexity-sdk-error-handling)\n- [API Reference](https:\u002F\u002Fdocs.perplexity.ai\u002Fapi-reference\u002Fchat-completions-post)\n\n## Next Steps\nFor comprehensive debugging, see `perplexity-debug-bundle`.\n","# Perplexity Common Errors\n\n## Overview\nQuick reference for the most common Perplexity Sonar API errors, their root causes, and fixes. All Perplexity errors follow the OpenAI error format since the API is OpenAI-compatible.\n\n## Prerequisites\n- `PERPLEXITY_API_KEY` environment variable set\n- `curl` available for diagnostic commands\n\n## Error Reference\n\n### 401 Unauthorized — Invalid API Key\n```json\n{\"error\": {\"message\": \"Invalid API key\", \"type\": \"authentication_error\", \"code\": 401}}\n```\n\n**Causes:** Key missing, expired, revoked, or doesn't start with `pplx-`.\n\n**Fix:**\n```bash\nset -euo pipefail\n# Verify key is set and has correct prefix\necho \"${PERPLEXITY_API_KEY:0:5}\"  # Should print \"pplx-\"\n\n# Test key directly\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n  -H \"Authorization: Bearer $PERPLEXITY_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"test\"}],\"max_tokens\":5}' \\\n  https:\u002F\u002Fapi.perplexity.ai\u002Fchat\u002Fcompletions\n# 200 = valid, 401 = invalid key\n```\n\nRegenerate at [perplexity.ai\u002Fsettings\u002Fapi](https:\u002F\u002Fwww.perplexity.ai\u002Fsettings\u002Fapi).\n\n---\n\n### 429 Too Many Requests — Rate Limited\n```json\n{\"error\": {\"message\": \"Rate limit exceeded\", \"type\": \"rate_limit_error\", \"code\": 429}}\n```\n\n**Causes:** Exceeded requests per minute (RPM). Most tiers allow 50 RPM. Perplexity uses a leaky bucket algorithm.\n\n**Fix:**\n```typescript\nasync function withBackoff\u003CT>(fn: () => Promise\u003CT>, maxRetries = 5): Promise\u003CT> {\n  for (let i = 0; i \u003C= maxRetries; i++) {\n    try {\n      return await fn();\n    } catch (err: any) {\n      if (err.status !== 429 || i === maxRetries) throw err;\n      const delay = Math.pow(2, i) * 1000 + Math.random() * 500;\n      console.log(`Rate limited. Retrying in ${delay.toFixed(0)}ms...`);\n      await new Promise(r => setTimeout(r, delay));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\nSee `perplexity-rate-limits` for queue-based solutions.\n\n---\n\n### 400 Bad Request — Invalid Model\n```json\n{\"error\": {\"message\": \"Invalid model: gpt-4\", \"type\": \"invalid_request_error\"}}\n```\n\n**Cause:** Using a non-Perplexity model name.\n\n**Valid models:** `sonar`, `sonar-pro`, `sonar-reasoning-pro`, `sonar-deep-research`.\n\n---\n\n### 400 Bad Request — Invalid search_domain_filter\n```json\n{\"error\": {\"message\": \"search_domain_filter must contain at most 20 domains\"}}\n```\n\n**Cause:** Exceeding the 20-domain limit, or mixing allowlist (no prefix) with denylist (`-` prefix).\n\n**Fix:** Use either allowlist OR denylist mode, not both:\n```typescript\n\u002F\u002F Allowlist: only these domains\nsearch_domain_filter: [\"python.org\", \"docs.python.org\"]\n\n\u002F\u002F Denylist: exclude these domains\nsearch_domain_filter: [\"-reddit.com\", \"-quora.com\"]\n```\n\n---\n\n### Empty Citations Array\nNot an error, but a common surprise.\n\n**Causes:** Query too abstract, non-factual question, or model couldn't find relevant sources.\n\n**Fix:**\n```typescript\n\u002F\u002F BAD: abstract query yields no citations\n\"Tell me about technology\"\n\n\u002F\u002F GOOD: specific factual query\n\"What are the key features of TypeScript 5.5 released in 2025?\"\n```\n\nUse `sonar-pro` for more citations (2x average citation count vs `sonar`).\n\n---\n\n### Timeout \u002F Hanging Request\n**Causes:** Complex query with `sonar-pro` or `sonar-deep-research`. Sonar: 1-3s typical. Sonar-pro: 3-8s. Deep research: 10-60s.\n\n**Fix:**\n```typescript\nconst controller = new AbortController();\nconst timeout = setTimeout(() => controller.abort(), 15000);\n\ntry {\n  const response = await perplexity.chat.completions.create(\n    { model: \"sonar\", messages: [{ role: \"user\", content: query }] },\n    { signal: controller.signal }\n  );\n  return response;\n} finally {\n  clearTimeout(timeout);\n}\n```\n\n---\n\n### 402 Payment Required — No Credits\n```json\n{\"error\": {\"message\": \"Insufficient credits\", \"type\": \"billing_error\"}}\n```\n\n**Cause:** Account has no API credits remaining.\n\n**Fix:** Add credits at [perplexity.ai\u002Fsettings\u002Fapi](https:\u002F\u002Fwww.perplexity.ai\u002Fsettings\u002Fapi).\n\n## Diagnostic Commands\n```bash\nset -euo pipefail\n# Quick API health check\ncurl -s -w \"\\nHTTP %{http_code} in %{time_total}s\\n\" \\\n  -H \"Authorization: Bearer $PERPLEXITY_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}],\"max_tokens\":5}' \\\n  https:\u002F\u002Fapi.perplexity.ai\u002Fchat\u002Fcompletions\n\n# Check if key env var is set\nenv | grep PERPLEXITY\n\n# Test DNS resolution\ndig api.perplexity.ai +short\n```\n\n## Error Handling\n| HTTP Code | Error Type | Retry? | Action |\n|-----------|-----------|--------|--------|\n| 400 | `invalid_request_error` | No | Fix request parameters |\n| 401 | `authentication_error` | No | Regenerate API key |\n| 402 | `billing_error` | No | Add credits |\n| 429 | `rate_limit_error` | Yes | Exponential backoff |\n| 500+ | `server_error` | Yes | Retry after 2-5 seconds |\n\n## Output\n- Identified error cause from HTTP status and error type\n- Applied fix or workaround\n- Verified resolution with diagnostic commands\n\n## Resources\n- [Perplexity Error Handling Guide](https:\u002F\u002Fdocs.perplexity.ai\u002Fguides\u002Fperplexity-sdk-error-handling)\n- [API Reference](https:\u002F\u002Fdocs.perplexity.ai\u002Fapi-reference\u002Fchat-completions-post)\n\n## Next Steps\nFor comprehensive debugging, see `perplexity-debug-bundle`.\n",{"name":5,"tags":24,"author":28,"license":15,"version":29,"description":30,"allowed-tools":31,"compatible-with":32},[25,26,27],"saas","perplexity","debugging","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Diagnose and fix Perplexity Sonar API errors and exceptions.\nUse when encountering Perplexity errors, debugging failed requests,\nor troubleshooting integration issues.\nTrigger with phrases like \"perplexity error\", \"fix perplexity\",\n\"perplexity not working\", \"debug perplexity\", \"perplexity 429\".\n","Read, Grep, Bash(curl:*)","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--perplexity-pack--perplexity-common-errors",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill perplexity-common-errors",{"tool":48,"command":49},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill perplexity-common-errors",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill perplexity-common-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--perplexity-pack--perplexity-common-errors\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]