[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7921VS9MXJB4CDN1X5KPNR2":3,"skill-same:01M7921VS9MXJB4CDN1X5KPNR2":57},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7921VS9MXJB4CDN1X5KPNR2","klingai-common-errors",null,"Diagnose and fix common Kling AI API errors. Use when troubleshooting failed video generation\nor API issues. Trigger with phrases like 'kling ai error', 'klingai not working', 'fix klingai',\n'klingai failed'.","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--klingai-pack--klingai-common-errors\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: klingai-common-errors\ndescription: |\n  Diagnose and fix common Kling AI API errors. Use when troubleshooting failed video generation\n  or API issues. Trigger with phrases like 'kling ai error', 'klingai not working', 'fix klingai',\n  'klingai failed'.\nallowed-tools: Read, Write, Edit, Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, kling-ai, debugging, errors]\n---\n# Kling AI Common Errors\n\n## Overview\n\nComplete error reference for the Kling AI API. Covers HTTP status codes, task-level failures, JWT issues, and generation-specific problems with tested solutions.\n\n## HTTP Error Codes\n\n| Code | Error | Cause | Solution |\n|------|-------|-------|----------|\n| `400` | Bad Request | Invalid parameters, malformed JSON | Validate all required fields; check `model_name` is valid |\n| `401` | Unauthorized | Invalid\u002Fexpired JWT token | Regenerate JWT; verify AK\u002FSK; check `exp` claim |\n| `402` | Payment Required | Insufficient credits | Top up API resource pack or subscription |\n| `403` | Forbidden | Content policy violation or API disabled | Review prompt against content policy; enable API access |\n| `404` | Not Found | Invalid task_id or wrong endpoint | Verify task_id; check endpoint path spelling |\n| `429` | Too Many Requests | Rate limit exceeded | Implement exponential backoff (see pattern below) |\n| `500` | Internal Server Error | Kling platform issue | Retry after 30s; if persistent, check status page |\n| `502` | Bad Gateway | Upstream service unavailable | Retry with backoff; typically transient |\n| `503` | Service Unavailable | System maintenance | Wait and retry; check announcements |\n\n## Task-Level Failures\n\nWhen HTTP returns `200` but `task_status` is `\"failed\"`:\n\n| `task_status_msg` | Cause | Solution |\n|-------------------|-------|----------|\n| Content policy violation | Prompt contains restricted content | Remove violent, adult, or copyrighted references |\n| Image quality too low | Source image is blurry or too small | Use image >= 300x300px, clear and sharp |\n| Prompt too complex | Too many scene elements | Simplify to 1-2 subjects, clear action |\n| Generation timeout | Internal processing exceeded limit | Retry; reduce duration from 10s to 5s |\n| Invalid image format | Unsupported file type | Use JPG, PNG, or WebP |\n| Mask dimension mismatch | Mask size differs from source | Ensure mask matches source image dimensions exactly |\n\n## JWT Authentication Errors\n\n### Problem: `401` on every request\n\n```python\n# WRONG — missing headers parameter\ntoken = jwt.encode(payload, sk, algorithm=\"HS256\")\n\n# CORRECT — include explicit headers\ntoken = jwt.encode(payload, sk, algorithm=\"HS256\",\n                   headers={\"alg\": \"HS256\", \"typ\": \"JWT\"})\n```\n\n### Problem: Token works then fails after 30 min\n\n```python\n# WRONG — token generated once at import time\nTOKEN = generate_token()\n\n# CORRECT — refresh before expiry\nclass TokenManager:\n    def __init__(self, ak, sk):\n        self.ak, self.sk = ak, sk\n        self._token = None\n        self._exp = 0\n\n    @property\n    def token(self):\n        if time.time() >= self._exp - 300:  # 5 min buffer\n            payload = {\"iss\": self.ak, \"exp\": int(time.time()) + 1800,\n                       \"nbf\": int(time.time()) - 5}\n            self._token = jwt.encode(payload, self.sk, algorithm=\"HS256\",\n                                     headers={\"alg\": \"HS256\", \"typ\": \"JWT\"})\n            self._exp = int(time.time()) + 1800\n        return self._token\n```\n\n## Rate Limit Handling\n\n```python\nimport time\nimport requests\n\ndef request_with_backoff(method, url, headers, json=None, max_retries=5):\n    \"\"\"Retry with exponential backoff on 429 and 5xx errors.\"\"\"\n    for attempt in range(max_retries):\n        response = method(url, headers=headers, json=json)\n\n        if response.status_code == 429:\n            retry_after = int(response.headers.get(\"Retry-After\", 2 ** attempt))\n            print(f\"Rate limited. Retrying in {retry_after}s...\")\n            time.sleep(retry_after)\n            continue\n        elif response.status_code >= 500:\n            wait = 2 ** attempt\n            print(f\"Server error {response.status_code}. Retrying in {wait}s...\")\n            time.sleep(wait)\n            continue\n\n        response.raise_for_status()\n        return response\n\n    raise RuntimeError(f\"Max retries ({max_retries}) exceeded\")\n```\n\n## Diagnostic Checklist\n\nWhen a generation fails, check in order:\n\n1. **Auth valid?** — Test with a simple GET request first\n2. **Credits available?** — Check balance in developer console\n3. **Model valid?** — Verify `model_name` matches catalog exactly\n4. **Parameters valid?** — `duration` must be `\"5\"` or `\"10\"` (string, not int)\n5. **Prompt clean?** — Remove special characters, keep under 2500 chars\n6. **Image accessible?** — For I2V, verify image URL is publicly accessible\n7. **Feature exclusivity?** — `image_tail`, `dynamic_masks`, and `camera_control` are mutually exclusive\n\n## Debug Logging\n\n```python\nimport logging\n\nlogging.basicConfig(level=logging.DEBUG)\nlogger = logging.getLogger(\"kling\")\n\ndef debug_request(method, url, headers, json=None):\n    \"\"\"Log request\u002Fresponse for debugging.\"\"\"\n    logger.debug(f\"→ {method.__name__.upper()} {url}\")\n    logger.debug(f\"→ Body: {json}\")\n    r = method(url, headers=headers, json=json)\n    logger.debug(f\"← Status: {r.status_code}\")\n    logger.debug(f\"← Body: {r.text[:500]}\")\n    return r\n```\n\n## Resources\n\n- [API Reference](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002FapiReference\u002Fmodel\u002FtextToVideo)\n- [Content Policy](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002Fprotocols\u002FpaidServiceProtocol)\n- [Developer Portal](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev)\n","# Kling AI Common Errors\n\n## Overview\n\nComplete error reference for the Kling AI API. Covers HTTP status codes, task-level failures, JWT issues, and generation-specific problems with tested solutions.\n\n## HTTP Error Codes\n\n| Code | Error | Cause | Solution |\n|------|-------|-------|----------|\n| `400` | Bad Request | Invalid parameters, malformed JSON | Validate all required fields; check `model_name` is valid |\n| `401` | Unauthorized | Invalid\u002Fexpired JWT token | Regenerate JWT; verify AK\u002FSK; check `exp` claim |\n| `402` | Payment Required | Insufficient credits | Top up API resource pack or subscription |\n| `403` | Forbidden | Content policy violation or API disabled | Review prompt against content policy; enable API access |\n| `404` | Not Found | Invalid task_id or wrong endpoint | Verify task_id; check endpoint path spelling |\n| `429` | Too Many Requests | Rate limit exceeded | Implement exponential backoff (see pattern below) |\n| `500` | Internal Server Error | Kling platform issue | Retry after 30s; if persistent, check status page |\n| `502` | Bad Gateway | Upstream service unavailable | Retry with backoff; typically transient |\n| `503` | Service Unavailable | System maintenance | Wait and retry; check announcements |\n\n## Task-Level Failures\n\nWhen HTTP returns `200` but `task_status` is `\"failed\"`:\n\n| `task_status_msg` | Cause | Solution |\n|-------------------|-------|----------|\n| Content policy violation | Prompt contains restricted content | Remove violent, adult, or copyrighted references |\n| Image quality too low | Source image is blurry or too small | Use image >= 300x300px, clear and sharp |\n| Prompt too complex | Too many scene elements | Simplify to 1-2 subjects, clear action |\n| Generation timeout | Internal processing exceeded limit | Retry; reduce duration from 10s to 5s |\n| Invalid image format | Unsupported file type | Use JPG, PNG, or WebP |\n| Mask dimension mismatch | Mask size differs from source | Ensure mask matches source image dimensions exactly |\n\n## JWT Authentication Errors\n\n### Problem: `401` on every request\n\n```python\n# WRONG — missing headers parameter\ntoken = jwt.encode(payload, sk, algorithm=\"HS256\")\n\n# CORRECT — include explicit headers\ntoken = jwt.encode(payload, sk, algorithm=\"HS256\",\n                   headers={\"alg\": \"HS256\", \"typ\": \"JWT\"})\n```\n\n### Problem: Token works then fails after 30 min\n\n```python\n# WRONG — token generated once at import time\nTOKEN = generate_token()\n\n# CORRECT — refresh before expiry\nclass TokenManager:\n    def __init__(self, ak, sk):\n        self.ak, self.sk = ak, sk\n        self._token = None\n        self._exp = 0\n\n    @property\n    def token(self):\n        if time.time() >= self._exp - 300:  # 5 min buffer\n            payload = {\"iss\": self.ak, \"exp\": int(time.time()) + 1800,\n                       \"nbf\": int(time.time()) - 5}\n            self._token = jwt.encode(payload, self.sk, algorithm=\"HS256\",\n                                     headers={\"alg\": \"HS256\", \"typ\": \"JWT\"})\n            self._exp = int(time.time()) + 1800\n        return self._token\n```\n\n## Rate Limit Handling\n\n```python\nimport time\nimport requests\n\ndef request_with_backoff(method, url, headers, json=None, max_retries=5):\n    \"\"\"Retry with exponential backoff on 429 and 5xx errors.\"\"\"\n    for attempt in range(max_retries):\n        response = method(url, headers=headers, json=json)\n\n        if response.status_code == 429:\n            retry_after = int(response.headers.get(\"Retry-After\", 2 ** attempt))\n            print(f\"Rate limited. Retrying in {retry_after}s...\")\n            time.sleep(retry_after)\n            continue\n        elif response.status_code >= 500:\n            wait = 2 ** attempt\n            print(f\"Server error {response.status_code}. Retrying in {wait}s...\")\n            time.sleep(wait)\n            continue\n\n        response.raise_for_status()\n        return response\n\n    raise RuntimeError(f\"Max retries ({max_retries}) exceeded\")\n```\n\n## Diagnostic Checklist\n\nWhen a generation fails, check in order:\n\n1. **Auth valid?** — Test with a simple GET request first\n2. **Credits available?** — Check balance in developer console\n3. **Model valid?** — Verify `model_name` matches catalog exactly\n4. **Parameters valid?** — `duration` must be `\"5\"` or `\"10\"` (string, not int)\n5. **Prompt clean?** — Remove special characters, keep under 2500 chars\n6. **Image accessible?** — For I2V, verify image URL is publicly accessible\n7. **Feature exclusivity?** — `image_tail`, `dynamic_masks`, and `camera_control` are mutually exclusive\n\n## Debug Logging\n\n```python\nimport logging\n\nlogging.basicConfig(level=logging.DEBUG)\nlogger = logging.getLogger(\"kling\")\n\ndef debug_request(method, url, headers, json=None):\n    \"\"\"Log request\u002Fresponse for debugging.\"\"\"\n    logger.debug(f\"→ {method.__name__.upper()} {url}\")\n    logger.debug(f\"→ Body: {json}\")\n    r = method(url, headers=headers, json=json)\n    logger.debug(f\"← Status: {r.status_code}\")\n    logger.debug(f\"← Body: {r.text[:500]}\")\n    return r\n```\n\n## Resources\n\n- [API Reference](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002FapiReference\u002Fmodel\u002FtextToVideo)\n- [Content Policy](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002Fprotocols\u002FpaidServiceProtocol)\n- [Developer Portal](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev)\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","kling-ai","debugging","errors","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Diagnose and fix common Kling AI API errors. Use when troubleshooting failed video generation\nor API issues. Trigger with phrases like 'kling ai error', 'klingai not working', 'fix klingai',\n'klingai failed'.\n","Read, Write, Edit, Bash(npm:*), Grep","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--klingai-pack--klingai-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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill klingai-common-errors",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill klingai-common-errors",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill klingai-common-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--klingai-pack--klingai-common-errors\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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",[],[]]