| name | todoist-api-common-issues |
| description | Sub-skill of todoist-api: Common Issues. |
| version | 1.0.0 |
| category | business |
| type | reference |
| scripts_exempt | true |
Common Issues
Common Issues
Issue: 401 Unauthorized
curl -s -X GET "https://api.todoist.com/rest/v2/projects" \
-H "Authorization: Bearer $TODOIST_API_KEY"
echo $TODOIST_API_KEY
Issue: 429 Too Many Requests
import time
def retry_with_backoff(func, max_retries=5):
for i in range(max_retries):
try:
return func()
except Exception as e:
if "429" in str(e):
wait = 2 ** i
print(f"Rate limited, waiting {wait}s")
time.sleep(wait)
else:
raise
Issue: Task not appearing
all_tasks = api.get_tasks()
for task in all_tasks:
if "keyword" in task.content.lower():
print(f"Found: {task.content} in project {task.project_id}")
Issue: Due dates not parsing
api.add_task(
content="Test task",
due_date="2025-01-20"
)
api.add_task(
content="Test task",
due_datetime="2025-01-20T14:00:00Z"
)