Diagnose and fix common Evernote API errors.
Use when encountering Evernote API exceptions, debugging failures,
or troubleshooting integration issues.
Trigger with phrases like "evernote error", "evernote exception",
"fix evernote issue", "debug evernote", "evernote troubleshooting".
Diagnose and fix common Evernote API errors.
Use when encountering Evernote API exceptions, debugging failures,
or troubleshooting integration issues.
Trigger with phrases like "evernote error", "evernote exception",
"fix evernote issue", "debug evernote", "evernote troubleshooting".
allowed-tools
Read, Write, Edit, Grep
version
1.0.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
Evernote Common Errors
Overview
Comprehensive guide to diagnosing and resolving Evernote API errors, including EDAMUserException, EDAMSystemException, and EDAMNotFoundException.
Prerequisites
Basic Evernote SDK setup
Understanding of Evernote data model
Error Types
Evernote uses three main exception types:
Exception
When Thrown
EDAMUserException
Client error - invalid input, permissions
EDAMSystemException
Server error - rate limits, maintenance
EDAMNotFoundException
Resource not found - invalid GUID
EDAMUserException Errors
BAD_DATA_FORMAT
Cause: Invalid ENML content or malformed data
// Error
{
errorCode: 1, // BAD_DATA_FORMATparameter: 'Note.content'
}
// Common causes and fixes:// 1. Missing XML declaration// Wrong:'<en-note><p>Hello</p></en-note>'// Correct:`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note><p>Hello</p></en-note>`// 2. Forbidden HTML elements// Wrong: contains <script>`<en-note><script>alert('hi')</script></en-note>`// Correct: remove scripts`<en-note><p>Content only</p></en-note>`// 3. Unclosed tags// Wrong:'<en-note><p>Hello<br></en-note>'// Correct:'<en-note><p>Hello</p><br/></en-note>'
// Error
{
errorCode: 2, // DATA_REQUIREDparameter: 'Note.title'
}
// Fix: Ensure required fields are setconst note = newEvernote.Types.Note();
note.title = 'Required Title'; // Cannot be null or empty
note.content = validENMLContent; // Cannot be null
PERMISSION_DENIED
Cause: API key lacks required permissions
// Error
{
errorCode: 3, // PERMISSION_DENIEDparameter: 'NoteStore.shareNote'
}
// Causes:// 1. API key doesn't have sharing permission// 2. Trying to access business features without business API key// 3. Accessing notes in shared notebooks without permission// Fix: Request appropriate permissions when creating API key// See: https://dev.evernote.com/doc/articles/permissions.php