{"record":{"id":"8bee0fbc72aa124e","repo":"sickn33/agentic-awesome-skills","slug":"failed-to-fetch","errorCode":null,"errorMessage":"Failed to fetch","messagePattern":"Failed to fetch","errorType":"http","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"skills/javascript-mastery/SKILL.md","lineNumber":354,"sourceCode":"promise\n  .then((result) => console.log(result))\n  .catch((error) => console.error(error))\n  .finally(() => console.log(\"Done\"));\n\n// Promise combinators\nPromise.all([p1, p2, p3]); // All must succeed\nPromise.allSettled([p1, p2]); // Wait for all, get status\nPromise.race([p1, p2]); // First to settle\nPromise.any([p1, p2]); // First to succeed\n```\n\n### 4.4 async/await\n\n```javascript\nasync function fetchUserData(userId) {\n  try {\n    const response = await fetch(`/api/users/${userId}`);\n    if (!response.ok) throw new Error(\"Failed to fetch\");\n    const user = await response.json();\n    return user;\n  } catch (error) {\n    console.error(\"Error:\", error);\n    throw error; // Re-throw for caller to handle\n  }\n}\n\n// Parallel execution\nasync function fetchAll() {\n  const [users, posts] = await Promise.all([\n    fetch(\"/api/users\"),\n    fetch(\"/api/posts\"),\n  ]);\n  return { users, posts };\n}\n```\n","sourceCodeStart":336,"sourceCodeEnd":372,"githubUrl":"https://github.com/sickn33/agentic-awesome-skills/blob/58d857988fcfac6986206bca2b2fe223aa437e4b/skills/javascript-mastery/SKILL.md#L336-L372","documentation":"Error \"Failed to fetch\" thrown in sickn33/agentic-awesome-skills.","triggerScenarios":"Thrown at skills/javascript-mastery/SKILL.md:354 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"58d857988fcfac6986206bca2b2fe223aa437e4b","analyzedAt":"2026-08-26T11:55:59.350Z","schemaVersion":2},"datasetVersion":"2026-08-26T14:46:13.012Z"}