[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6ERHV75PGBFEHDXN2ZMRC":3,"skill-same:01M6F6ERHV75PGBFEHDXN2ZMRC":75},{"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":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6F6ERHV75PGBFEHDXN2ZMRC","evernote-common-errors",null,"Diagnose and fix common Evernote API errors.\nUse when encountering Evernote API exceptions, debugging failures,\nor troubleshooting integration issues.\nTrigger with phrases like \"evernote error\", \"evernote exception\",\n\"fix evernote issue\", \"debug evernote\", \"evernote troubleshooting\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fevernote-pack\u002Fskills\u002Fevernote-common-errors\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"evernote","errors","evernote common errors","common","fix","when","api errors","with","error","trigger","io","issue","use","debug","edit","write","read","grep","troubleshooting","api","integration","issues","debugging","diagnose","2026-11-10 10:12:30",false,"---\nname: evernote-common-errors\ndescription: |\n  Diagnose and fix common Evernote API errors.\n  Use when encountering Evernote API exceptions, debugging failures,\n  or troubleshooting integration issues.\n  Trigger with phrases like \"evernote error\", \"evernote exception\",\n  \"fix evernote issue\", \"debug evernote\", \"evernote troubleshooting\".\nallowed-tools: Read, Write, Edit, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Evernote Common Errors\n\n## Overview\n\nComprehensive guide to diagnosing and resolving Evernote API errors, including EDAMUserException, EDAMSystemException, and EDAMNotFoundException.\n\n## Prerequisites\n\n- Basic Evernote SDK setup\n- Understanding of Evernote data model\n\n## Error Types\n\nEvernote uses three main exception types:\n\n| Exception | When Thrown |\n|-----------|-------------|\n| `EDAMUserException` | Client error - invalid input, permissions |\n| `EDAMSystemException` | Server error - rate limits, maintenance |\n| `EDAMNotFoundException` | Resource not found - invalid GUID |\n\n## EDAMUserException Errors\n\n### BAD_DATA_FORMAT\n\n**Cause:** Invalid ENML content or malformed data\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 1, \u002F\u002F BAD_DATA_FORMAT\n  parameter: 'Note.content'\n}\n\n\u002F\u002F Common causes and fixes:\n\n\u002F\u002F 1. Missing XML declaration\n\u002F\u002F Wrong:\n'\u003Cen-note>\u003Cp>Hello\u003C\u002Fp>\u003C\u002Fen-note>'\n\n\u002F\u002F Correct:\n`\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE en-note SYSTEM \"http:\u002F\u002Fxml.evernote.com\u002Fpub\u002Fenml2.dtd\">\n\u003Cen-note>\u003Cp>Hello\u003C\u002Fp>\u003C\u002Fen-note>`\n\n\u002F\u002F 2. Forbidden HTML elements\n\u002F\u002F Wrong: contains \u003Cscript>\n`\u003Cen-note>\u003Cscript>alert('hi')\u003C\u002Fscript>\u003C\u002Fen-note>`\n\n\u002F\u002F Correct: remove scripts\n`\u003Cen-note>\u003Cp>Content only\u003C\u002Fp>\u003C\u002Fen-note>`\n\n\u002F\u002F 3. Unclosed tags\n\u002F\u002F Wrong:\n'\u003Cen-note>\u003Cp>Hello\u003Cbr>\u003C\u002Fen-note>'\n\n\u002F\u002F Correct:\n'\u003Cen-note>\u003Cp>Hello\u003C\u002Fp>\u003Cbr\u002F>\u003C\u002Fen-note>'\n```\n\n**Fix:** Validate ENML before sending:\n\n```javascript\nfunction validateENML(content) {\n  const errors = [];\n\n  \u002F\u002F Required declarations\n  if (!content.includes('\u003C?xml version=\"1.0\"')) {\n    errors.push('Missing XML declaration');\n  }\n  if (!content.includes('\u003C!DOCTYPE en-note')) {\n    errors.push('Missing DOCTYPE');\n  }\n  if (!content.includes('\u003Cen-note>')) {\n    errors.push('Missing \u003Cen-note> root element');\n  }\n\n  \u002F\u002F Forbidden elements\n  const forbidden = [\n    \u002F\u003Cscript\u002Fi, \u002F\u003Cform\u002Fi, \u002F\u003Cinput\u002Fi, \u002F\u003Cbutton\u002Fi,\n    \u002F\u003Ciframe\u002Fi, \u002F\u003Cobject\u002Fi, \u002F\u003Cembed\u002Fi, \u002F\u003Capplet\u002Fi\n  ];\n\n  forbidden.forEach(pattern => {\n    if (pattern.test(content)) {\n      errors.push(`Forbidden element: ${pattern.source}`);\n    }\n  });\n\n  \u002F\u002F Forbidden attributes\n  if (\u002F\\s(class|id|onclick|onload|onerror)=\u002Fi.test(content)) {\n    errors.push('Forbidden attributes (class, id, event handlers)');\n  }\n\n  return { valid: errors.length === 0, errors };\n}\n```\n\n### DATA_REQUIRED\n\n**Cause:** Missing required field\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 2, \u002F\u002F DATA_REQUIRED\n  parameter: 'Note.title'\n}\n\n\u002F\u002F Fix: Ensure required fields are set\nconst note = new Evernote.Types.Note();\nnote.title = 'Required Title';  \u002F\u002F Cannot be null or empty\nnote.content = validENMLContent; \u002F\u002F Cannot be null\n```\n\n### PERMISSION_DENIED\n\n**Cause:** API key lacks required permissions\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 3, \u002F\u002F PERMISSION_DENIED\n  parameter: 'NoteStore.shareNote'\n}\n\n\u002F\u002F Causes:\n\u002F\u002F 1. API key doesn't have sharing permission\n\u002F\u002F 2. Trying to access business features without business API key\n\u002F\u002F 3. Accessing notes in shared notebooks without permission\n\n\u002F\u002F Fix: Request appropriate permissions when creating API key\n\u002F\u002F See: https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Fpermissions.php\n```\n\n### INVALID_AUTH\n\n**Cause:** Invalid or expired authentication token\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 4, \u002F\u002F INVALID_AUTH\n  parameter: 'authenticationToken'\n}\n\n\u002F\u002F Fix: Check token validity\nasync function checkTokenValidity(client) {\n  try {\n    const userStore = client.getUserStore();\n    await userStore.getUser();\n    return { valid: true };\n  } catch (error) {\n    if (error.errorCode === 4) {\n      return {\n        valid: false,\n        reason: 'Token expired or revoked',\n        action: 'Re-authenticate via OAuth'\n      };\n    }\n    throw error;\n  }\n}\n```\n\n### AUTH_EXPIRED\n\n**Cause:** Token has passed expiration date\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 5, \u002F\u002F AUTH_EXPIRED\n  parameter: 'authenticationToken'\n}\n\n\u002F\u002F Tokens expire after 1 year by default\n\u002F\u002F Users can set shorter: 1 day, 1 week, 1 month\n\n\u002F\u002F Fix: Store and check expiration\nfunction isTokenExpired(expirationTimestamp) {\n  return Date.now() > expirationTimestamp;\n}\n\n\u002F\u002F When authenticating, save edam_expires:\n\u002F\u002F results.edam_expires contains expiration timestamp\n```\n\n### LIMIT_REACHED\n\n**Cause:** Account limits exceeded\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 6, \u002F\u002F LIMIT_REACHED\n  parameter: 'Notebook.name'\n}\n\n\u002F\u002F Account limits:\n\u002F\u002F - 250 notebooks max\n\u002F\u002F - 100,000 tags max\n\u002F\u002F - 100,000 notes max (business accounts)\n\u002F\u002F - Upload limits per month\n\n\u002F\u002F Fix: Check limits before creating\nasync function canCreateNotebook(noteStore) {\n  const notebooks = await noteStore.listNotebooks();\n  return notebooks.length \u003C 250;\n}\n```\n\n### QUOTA_REACHED\n\n**Cause:** Monthly upload quota exceeded\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 7, \u002F\u002F QUOTA_REACHED\n  parameter: 'Note.content'\n}\n\n\u002F\u002F Quotas vary by account type:\n\u002F\u002F - Basic: 60 MB\u002Fmonth\n\u002F\u002F - Premium: 10 GB\u002Fmonth\n\u002F\u002F - Business: 20 GB\u002Fmonth (per user)\n\n\u002F\u002F Check remaining quota\nasync function getRemainingQuota(userStore) {\n  const user = await userStore.getUser();\n  const accounting = user.accounting;\n\n  return {\n    uploadLimit: accounting.uploadLimit,\n    uploadLimitEnd: new Date(accounting.uploadLimitEnd),\n    uploaded: accounting.uploaded,\n    remaining: accounting.uploadLimit - accounting.uploaded\n  };\n}\n```\n\n## EDAMSystemException Errors\n\n### RATE_LIMIT_REACHED\n\n**Cause:** Too many API calls per hour\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 19, \u002F\u002F RATE_LIMIT_REACHED\n  rateLimitDuration: 300 \u002F\u002F seconds until reset\n}\n\n\u002F\u002F Fix: Implement exponential backoff\nasync function withRateLimitRetry(operation, maxRetries = 3) {\n  for (let attempt = 0; attempt \u003C maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error) {\n      if (error.errorCode === 19 && error.rateLimitDuration) {\n        console.log(`Rate limited. Waiting ${error.rateLimitDuration}s...`);\n        await sleep(error.rateLimitDuration * 1000);\n        continue;\n      }\n      throw error;\n    }\n  }\n  throw new Error('Max retries exceeded');\n}\n\nconst sleep = ms => new Promise(resolve => setTimeout(resolve, ms));\n```\n\n### SYSTEM_MAINTENANCE\n\n**Cause:** Evernote service is under maintenance\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 1, \u002F\u002F UNKNOWN (with message about maintenance)\n  message: 'Service temporarily unavailable'\n}\n\n\u002F\u002F Fix: Retry with backoff\nasync function withMaintenanceRetry(operation) {\n  const delays = [1000, 5000, 15000, 60000]; \u002F\u002F Progressive delays\n\n  for (const delay of delays) {\n    try {\n      return await operation();\n    } catch (error) {\n      if (error.message?.includes('temporarily unavailable')) {\n        console.log(`Service maintenance. Retrying in ${delay \u002F 1000}s...`);\n        await sleep(delay);\n        continue;\n      }\n      throw error;\n    }\n  }\n  throw new Error('Service unavailable - maintenance ongoing');\n}\n```\n\n## EDAMNotFoundException Errors\n\n**Cause:** Referenced resource doesn't exist\n\n```javascript\n\u002F\u002F Error\n{\n  identifier: 'Note.guid',\n  key: '12345678-abcd-1234-efgh-invalid00000'\n}\n\n\u002F\u002F Common scenarios:\n\u002F\u002F 1. Note was deleted\n\u002F\u002F 2. Note is in trash\n\u002F\u002F 3. Invalid GUID format\n\u002F\u002F 4. Note belongs to different user\n\n\u002F\u002F Fix: Handle gracefully\nasync function safeGetNote(noteStore, guid) {\n  try {\n    return await noteStore.getNote(guid, true, false, false, false);\n  } catch (error) {\n    if (error.identifier === 'Note.guid') {\n      console.log(`Note not found: ${guid}`);\n      return null;\n    }\n    throw error;\n  }\n}\n```\n\n## Error Handling Service\n\n```javascript\n\u002F\u002F services\u002Ferror-handler.js\nconst Evernote = require('evernote');\n\nclass EvernoteErrorHandler {\n  static handle(error) {\n    \u002F\u002F EDAMUserException\n    if (error.errorCode !== undefined && error.parameter !== undefined) {\n      return this.handleUserException(error);\n    }\n\n    \u002F\u002F EDAMSystemException\n    if (error.errorCode !== undefined && error.rateLimitDuration !== undefined) {\n      return this.handleSystemException(error);\n    }\n\n    \u002F\u002F EDAMNotFoundException\n    if (error.identifier !== undefined) {\n      return this.handleNotFoundException(error);\n    }\n\n    \u002F\u002F Unknown error\n    return {\n      type: 'UNKNOWN',\n      message: error.message || 'Unknown Evernote error',\n      recoverable: false,\n      original: error\n    };\n  }\n\n  static handleUserException(error) {\n    const codes = {\n      1: { name: 'BAD_DATA_FORMAT', action: 'Validate input data format' },\n      2: { name: 'DATA_REQUIRED', action: 'Provide required field' },\n      3: { name: 'PERMISSION_DENIED', action: 'Check API key permissions' },\n      4: { name: 'INVALID_AUTH', action: 'Re-authenticate user' },\n      5: { name: 'AUTH_EXPIRED', action: 'Token expired, re-authenticate' },\n      6: { name: 'LIMIT_REACHED', action: 'Account limit exceeded' },\n      7: { name: 'QUOTA_REACHED', action: 'Upload quota exceeded' }\n    };\n\n    const info = codes[error.errorCode] || { name: 'UNKNOWN', action: 'Check documentation' };\n\n    return {\n      type: 'USER_EXCEPTION',\n      code: error.errorCode,\n      name: info.name,\n      parameter: error.parameter,\n      action: info.action,\n      recoverable: [4, 5].includes(error.errorCode),\n      original: error\n    };\n  }\n\n  static handleSystemException(error) {\n    return {\n      type: 'SYSTEM_EXCEPTION',\n      code: error.errorCode,\n      rateLimitDuration: error.rateLimitDuration,\n      action: `Wait ${error.rateLimitDuration} seconds before retrying`,\n      recoverable: true,\n      original: error\n    };\n  }\n\n  static handleNotFoundException(error) {\n    return {\n      type: 'NOT_FOUND',\n      identifier: error.identifier,\n      key: error.key,\n      action: 'Resource does not exist or was deleted',\n      recoverable: false,\n      original: error\n    };\n  }\n}\n\nmodule.exports = EvernoteErrorHandler;\n```\n\n## Usage Example\n\n```javascript\nconst ErrorHandler = require('.\u002Fservices\u002Ferror-handler');\n\nasync function createNoteSafely(noteStore, note) {\n  try {\n    return await noteStore.createNote(note);\n  } catch (error) {\n    const handled = ErrorHandler.handle(error);\n\n    console.error('Evernote error:', handled.name || handled.type);\n    console.error('Parameter:', handled.parameter || handled.identifier);\n    console.error('Action:', handled.action);\n\n    if (handled.recoverable) {\n      console.log('Error is recoverable');\n      if (handled.rateLimitDuration) {\n        await sleep(handled.rateLimitDuration * 1000);\n        return noteStore.createNote(note);\n      }\n    }\n\n    throw error;\n  }\n}\n```\n\n## Output\n\n- Understanding of all Evernote exception types\n- Error code reference with solutions\n- Reusable error handling service\n- Rate limit retry implementation\n\n## Quick Reference\n\n| Code | Exception | Cause | Fix |\n|------|-----------|-------|-----|\n| 1 | UserException | Bad data format | Validate ENML |\n| 2 | UserException | Missing required field | Add required field |\n| 3 | UserException | Permission denied | Check API key |\n| 4 | UserException | Invalid auth | Re-authenticate |\n| 5 | UserException | Auth expired | Refresh token |\n| 6 | UserException | Limit reached | Check account limits |\n| 7 | UserException | Quota reached | Check upload quota |\n| 19 | SystemException | Rate limit | Wait rateLimitDuration |\n| - | NotFoundException | GUID not found | Verify resource exists |\n\n## Resources\n\n- [Error Handling](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Ferror_handling.php)\n- [Rate Limits](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Frate_limits.php)\n- [API Reference](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Freference\u002F)\n\n## Next Steps\n\nFor debugging tools and techniques, see `evernote-debug-bundle`.\n","# Evernote Common Errors\n\n## Overview\n\nComprehensive guide to diagnosing and resolving Evernote API errors, including EDAMUserException, EDAMSystemException, and EDAMNotFoundException.\n\n## Prerequisites\n\n- Basic Evernote SDK setup\n- Understanding of Evernote data model\n\n## Error Types\n\nEvernote uses three main exception types:\n\n| Exception | When Thrown |\n|-----------|-------------|\n| `EDAMUserException` | Client error - invalid input, permissions |\n| `EDAMSystemException` | Server error - rate limits, maintenance |\n| `EDAMNotFoundException` | Resource not found - invalid GUID |\n\n## EDAMUserException Errors\n\n### BAD_DATA_FORMAT\n\n**Cause:** Invalid ENML content or malformed data\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 1, \u002F\u002F BAD_DATA_FORMAT\n  parameter: 'Note.content'\n}\n\n\u002F\u002F Common causes and fixes:\n\n\u002F\u002F 1. Missing XML declaration\n\u002F\u002F Wrong:\n'\u003Cen-note>\u003Cp>Hello\u003C\u002Fp>\u003C\u002Fen-note>'\n\n\u002F\u002F Correct:\n`\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE en-note SYSTEM \"http:\u002F\u002Fxml.evernote.com\u002Fpub\u002Fenml2.dtd\">\n\u003Cen-note>\u003Cp>Hello\u003C\u002Fp>\u003C\u002Fen-note>`\n\n\u002F\u002F 2. Forbidden HTML elements\n\u002F\u002F Wrong: contains \u003Cscript>\n`\u003Cen-note>\u003Cscript>alert('hi')\u003C\u002Fscript>\u003C\u002Fen-note>`\n\n\u002F\u002F Correct: remove scripts\n`\u003Cen-note>\u003Cp>Content only\u003C\u002Fp>\u003C\u002Fen-note>`\n\n\u002F\u002F 3. Unclosed tags\n\u002F\u002F Wrong:\n'\u003Cen-note>\u003Cp>Hello\u003Cbr>\u003C\u002Fen-note>'\n\n\u002F\u002F Correct:\n'\u003Cen-note>\u003Cp>Hello\u003C\u002Fp>\u003Cbr\u002F>\u003C\u002Fen-note>'\n```\n\n**Fix:** Validate ENML before sending:\n\n```javascript\nfunction validateENML(content) {\n  const errors = [];\n\n  \u002F\u002F Required declarations\n  if (!content.includes('\u003C?xml version=\"1.0\"')) {\n    errors.push('Missing XML declaration');\n  }\n  if (!content.includes('\u003C!DOCTYPE en-note')) {\n    errors.push('Missing DOCTYPE');\n  }\n  if (!content.includes('\u003Cen-note>')) {\n    errors.push('Missing \u003Cen-note> root element');\n  }\n\n  \u002F\u002F Forbidden elements\n  const forbidden = [\n    \u002F\u003Cscript\u002Fi, \u002F\u003Cform\u002Fi, \u002F\u003Cinput\u002Fi, \u002F\u003Cbutton\u002Fi,\n    \u002F\u003Ciframe\u002Fi, \u002F\u003Cobject\u002Fi, \u002F\u003Cembed\u002Fi, \u002F\u003Capplet\u002Fi\n  ];\n\n  forbidden.forEach(pattern => {\n    if (pattern.test(content)) {\n      errors.push(`Forbidden element: ${pattern.source}`);\n    }\n  });\n\n  \u002F\u002F Forbidden attributes\n  if (\u002F\\s(class|id|onclick|onload|onerror)=\u002Fi.test(content)) {\n    errors.push('Forbidden attributes (class, id, event handlers)');\n  }\n\n  return { valid: errors.length === 0, errors };\n}\n```\n\n### DATA_REQUIRED\n\n**Cause:** Missing required field\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 2, \u002F\u002F DATA_REQUIRED\n  parameter: 'Note.title'\n}\n\n\u002F\u002F Fix: Ensure required fields are set\nconst note = new Evernote.Types.Note();\nnote.title = 'Required Title';  \u002F\u002F Cannot be null or empty\nnote.content = validENMLContent; \u002F\u002F Cannot be null\n```\n\n### PERMISSION_DENIED\n\n**Cause:** API key lacks required permissions\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 3, \u002F\u002F PERMISSION_DENIED\n  parameter: 'NoteStore.shareNote'\n}\n\n\u002F\u002F Causes:\n\u002F\u002F 1. API key doesn't have sharing permission\n\u002F\u002F 2. Trying to access business features without business API key\n\u002F\u002F 3. Accessing notes in shared notebooks without permission\n\n\u002F\u002F Fix: Request appropriate permissions when creating API key\n\u002F\u002F See: https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Fpermissions.php\n```\n\n### INVALID_AUTH\n\n**Cause:** Invalid or expired authentication token\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 4, \u002F\u002F INVALID_AUTH\n  parameter: 'authenticationToken'\n}\n\n\u002F\u002F Fix: Check token validity\nasync function checkTokenValidity(client) {\n  try {\n    const userStore = client.getUserStore();\n    await userStore.getUser();\n    return { valid: true };\n  } catch (error) {\n    if (error.errorCode === 4) {\n      return {\n        valid: false,\n        reason: 'Token expired or revoked',\n        action: 'Re-authenticate via OAuth'\n      };\n    }\n    throw error;\n  }\n}\n```\n\n### AUTH_EXPIRED\n\n**Cause:** Token has passed expiration date\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 5, \u002F\u002F AUTH_EXPIRED\n  parameter: 'authenticationToken'\n}\n\n\u002F\u002F Tokens expire after 1 year by default\n\u002F\u002F Users can set shorter: 1 day, 1 week, 1 month\n\n\u002F\u002F Fix: Store and check expiration\nfunction isTokenExpired(expirationTimestamp) {\n  return Date.now() > expirationTimestamp;\n}\n\n\u002F\u002F When authenticating, save edam_expires:\n\u002F\u002F results.edam_expires contains expiration timestamp\n```\n\n### LIMIT_REACHED\n\n**Cause:** Account limits exceeded\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 6, \u002F\u002F LIMIT_REACHED\n  parameter: 'Notebook.name'\n}\n\n\u002F\u002F Account limits:\n\u002F\u002F - 250 notebooks max\n\u002F\u002F - 100,000 tags max\n\u002F\u002F - 100,000 notes max (business accounts)\n\u002F\u002F - Upload limits per month\n\n\u002F\u002F Fix: Check limits before creating\nasync function canCreateNotebook(noteStore) {\n  const notebooks = await noteStore.listNotebooks();\n  return notebooks.length \u003C 250;\n}\n```\n\n### QUOTA_REACHED\n\n**Cause:** Monthly upload quota exceeded\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 7, \u002F\u002F QUOTA_REACHED\n  parameter: 'Note.content'\n}\n\n\u002F\u002F Quotas vary by account type:\n\u002F\u002F - Basic: 60 MB\u002Fmonth\n\u002F\u002F - Premium: 10 GB\u002Fmonth\n\u002F\u002F - Business: 20 GB\u002Fmonth (per user)\n\n\u002F\u002F Check remaining quota\nasync function getRemainingQuota(userStore) {\n  const user = await userStore.getUser();\n  const accounting = user.accounting;\n\n  return {\n    uploadLimit: accounting.uploadLimit,\n    uploadLimitEnd: new Date(accounting.uploadLimitEnd),\n    uploaded: accounting.uploaded,\n    remaining: accounting.uploadLimit - accounting.uploaded\n  };\n}\n```\n\n## EDAMSystemException Errors\n\n### RATE_LIMIT_REACHED\n\n**Cause:** Too many API calls per hour\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 19, \u002F\u002F RATE_LIMIT_REACHED\n  rateLimitDuration: 300 \u002F\u002F seconds until reset\n}\n\n\u002F\u002F Fix: Implement exponential backoff\nasync function withRateLimitRetry(operation, maxRetries = 3) {\n  for (let attempt = 0; attempt \u003C maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error) {\n      if (error.errorCode === 19 && error.rateLimitDuration) {\n        console.log(`Rate limited. Waiting ${error.rateLimitDuration}s...`);\n        await sleep(error.rateLimitDuration * 1000);\n        continue;\n      }\n      throw error;\n    }\n  }\n  throw new Error('Max retries exceeded');\n}\n\nconst sleep = ms => new Promise(resolve => setTimeout(resolve, ms));\n```\n\n### SYSTEM_MAINTENANCE\n\n**Cause:** Evernote service is under maintenance\n\n```javascript\n\u002F\u002F Error\n{\n  errorCode: 1, \u002F\u002F UNKNOWN (with message about maintenance)\n  message: 'Service temporarily unavailable'\n}\n\n\u002F\u002F Fix: Retry with backoff\nasync function withMaintenanceRetry(operation) {\n  const delays = [1000, 5000, 15000, 60000]; \u002F\u002F Progressive delays\n\n  for (const delay of delays) {\n    try {\n      return await operation();\n    } catch (error) {\n      if (error.message?.includes('temporarily unavailable')) {\n        console.log(`Service maintenance. Retrying in ${delay \u002F 1000}s...`);\n        await sleep(delay);\n        continue;\n      }\n      throw error;\n    }\n  }\n  throw new Error('Service unavailable - maintenance ongoing');\n}\n```\n\n## EDAMNotFoundException Errors\n\n**Cause:** Referenced resource doesn't exist\n\n```javascript\n\u002F\u002F Error\n{\n  identifier: 'Note.guid',\n  key: '12345678-abcd-1234-efgh-invalid00000'\n}\n\n\u002F\u002F Common scenarios:\n\u002F\u002F 1. Note was deleted\n\u002F\u002F 2. Note is in trash\n\u002F\u002F 3. Invalid GUID format\n\u002F\u002F 4. Note belongs to different user\n\n\u002F\u002F Fix: Handle gracefully\nasync function safeGetNote(noteStore, guid) {\n  try {\n    return await noteStore.getNote(guid, true, false, false, false);\n  } catch (error) {\n    if (error.identifier === 'Note.guid') {\n      console.log(`Note not found: ${guid}`);\n      return null;\n    }\n    throw error;\n  }\n}\n```\n\n## Error Handling Service\n\n```javascript\n\u002F\u002F services\u002Ferror-handler.js\nconst Evernote = require('evernote');\n\nclass EvernoteErrorHandler {\n  static handle(error) {\n    \u002F\u002F EDAMUserException\n    if (error.errorCode !== undefined && error.parameter !== undefined) {\n      return this.handleUserException(error);\n    }\n\n    \u002F\u002F EDAMSystemException\n    if (error.errorCode !== undefined && error.rateLimitDuration !== undefined) {\n      return this.handleSystemException(error);\n    }\n\n    \u002F\u002F EDAMNotFoundException\n    if (error.identifier !== undefined) {\n      return this.handleNotFoundException(error);\n    }\n\n    \u002F\u002F Unknown error\n    return {\n      type: 'UNKNOWN',\n      message: error.message || 'Unknown Evernote error',\n      recoverable: false,\n      original: error\n    };\n  }\n\n  static handleUserException(error) {\n    const codes = {\n      1: { name: 'BAD_DATA_FORMAT', action: 'Validate input data format' },\n      2: { name: 'DATA_REQUIRED', action: 'Provide required field' },\n      3: { name: 'PERMISSION_DENIED', action: 'Check API key permissions' },\n      4: { name: 'INVALID_AUTH', action: 'Re-authenticate user' },\n      5: { name: 'AUTH_EXPIRED', action: 'Token expired, re-authenticate' },\n      6: { name: 'LIMIT_REACHED', action: 'Account limit exceeded' },\n      7: { name: 'QUOTA_REACHED', action: 'Upload quota exceeded' }\n    };\n\n    const info = codes[error.errorCode] || { name: 'UNKNOWN', action: 'Check documentation' };\n\n    return {\n      type: 'USER_EXCEPTION',\n      code: error.errorCode,\n      name: info.name,\n      parameter: error.parameter,\n      action: info.action,\n      recoverable: [4, 5].includes(error.errorCode),\n      original: error\n    };\n  }\n\n  static handleSystemException(error) {\n    return {\n      type: 'SYSTEM_EXCEPTION',\n      code: error.errorCode,\n      rateLimitDuration: error.rateLimitDuration,\n      action: `Wait ${error.rateLimitDuration} seconds before retrying`,\n      recoverable: true,\n      original: error\n    };\n  }\n\n  static handleNotFoundException(error) {\n    return {\n      type: 'NOT_FOUND',\n      identifier: error.identifier,\n      key: error.key,\n      action: 'Resource does not exist or was deleted',\n      recoverable: false,\n      original: error\n    };\n  }\n}\n\nmodule.exports = EvernoteErrorHandler;\n```\n\n## Usage Example\n\n```javascript\nconst ErrorHandler = require('.\u002Fservices\u002Ferror-handler');\n\nasync function createNoteSafely(noteStore, note) {\n  try {\n    return await noteStore.createNote(note);\n  } catch (error) {\n    const handled = ErrorHandler.handle(error);\n\n    console.error('Evernote error:', handled.name || handled.type);\n    console.error('Parameter:', handled.parameter || handled.identifier);\n    console.error('Action:', handled.action);\n\n    if (handled.recoverable) {\n      console.log('Error is recoverable');\n      if (handled.rateLimitDuration) {\n        await sleep(handled.rateLimitDuration * 1000);\n        return noteStore.createNote(note);\n      }\n    }\n\n    throw error;\n  }\n}\n```\n\n## Output\n\n- Understanding of all Evernote exception types\n- Error code reference with solutions\n- Reusable error handling service\n- Rate limit retry implementation\n\n## Quick Reference\n\n| Code | Exception | Cause | Fix |\n|------|-----------|-------|-----|\n| 1 | UserException | Bad data format | Validate ENML |\n| 2 | UserException | Missing required field | Add required field |\n| 3 | UserException | Permission denied | Check API key |\n| 4 | UserException | Invalid auth | Re-authenticate |\n| 5 | UserException | Auth expired | Refresh token |\n| 6 | UserException | Limit reached | Check account limits |\n| 7 | UserException | Quota reached | Check upload quota |\n| 19 | SystemException | Rate limit | Wait rateLimitDuration |\n| - | NotFoundException | GUID not found | Verify resource exists |\n\n## Resources\n\n- [Error Handling](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Ferror_handling.php)\n- [Rate Limits](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Frate_limits.php)\n- [API Reference](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Freference\u002F)\n\n## Next Steps\n\nFor debugging tools and techniques, see `evernote-debug-bundle`.\n",{"name":5,"author":48,"license":15,"version":49,"description":50,"allowed-tools":51},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Diagnose and fix common Evernote API errors.\nUse when encountering Evernote API exceptions, debugging failures,\nor troubleshooting integration issues.\nTrigger with phrases like \"evernote error\", \"evernote exception\",\n\"fix evernote issue\", \"debug evernote\", \"evernote troubleshooting\".\n","Read, Write, Edit, Grep","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fevernote-pack\u002Fskills\u002Fevernote-common-errors",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill evernote-common-errors",{"tool":67,"command":68},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill evernote-common-errors",{"tool":70,"command":71},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill evernote-common-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fevernote-pack\u002Fskills\u002Fevernote-common-errors\u002FSKILL.md",true,[],[76,104,136,154,180,204],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":103},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[],[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,26,101,102],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":43},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[],[112,113,91,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,31,96,129,130,131,132,133,134,135],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","for","jsx","suite",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":140,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":43},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[],[144,145,146,116,147,148,113,41,89,149,126,150,151,152,153,26,133],"testing","webapp testing","webapp","screenshots","playwright","browser","logs","applications","behavior","local",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":158,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":43},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[162,163,164,165,166,167,168,169,31,170,171,172,173,174,175,176,26,177,178,179,133,24],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":184,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":43},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[],[188,189,190,191,192,193,194,195,196,197,198,199,200,201,26,133,202,24,203],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":208,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":43},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[],[206,212,213,214,215,216,217,149,218,219,31,220,221,222,223,133,224],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]