evernote-rate-limits

Featured

Handle Evernote API rate limits effectively. Use when implementing rate limit handling, optimizing API usage, or troubleshooting rate limit errors. Trigger with phrases like "evernote rate limit", "evernote throttling", "api quota evernote", "rate limit exceeded".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Evernote Rate Limits ## Overview Evernote enforces rate limits per API key, per user. When exceeded, the API throws `EDAMSystemException` with `errorCode: RATE_LIMIT_REACHED` and `rateLimitDuration` (seconds to wait). Production integrations must handle this gracefully. ## Prerequisites - Evernote SDK setup - Understanding of async/await patterns - Error handling implementation ## Instructions ### Step 1: Rate Limit Handler Catch `EDAMSystemException` and check for `rateLimitDuration`. Implement exponential backoff: wait the specified duration, then retry. Track retry attempts to avoid infinite loops. ```javascript async function withRateLimitRetry(operation, maxRetries = 3) { for (let attempt = 0; attempt < maxRetries; attempt++) { try { return await operation(); } catch (error) { if (error.rateLimitDuration && attempt < maxRetries - 1) { const waitMs = error.rateLimitDuration * 1000; console.log(`Rate limited. Waiting ${error.rateLimitDuration}s...`); await new Promise(r => setTimeout(r, waitMs)); continue; } throw error; } } } ``` ### Step 2: Rate-Limited Client Wrapper Wrap the NoteStore with a class that adds configurable delays between API calls. Use a request queue to prevent bursts. Track request timestamps for monitoring. ```javascript class RateLimitedClient { constructor(noteStore, minDelayMs = 100) { this.noteStore = noteStore; this.minDelayMs = minDelayMs; this.lastRe...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category