-
-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Description
Hi, guy,
Type
- Bug Report
- Feature Request
- Question/Other
Prerequisites (for Bug Reports)
Environment Check:
- Node.js version:
node --version(must be v18.0.0+) - npm version:
npm --version - Operating System: (e.g., macOS 14, Windows 11, Ubuntu 22.04)
- ClickUp API key configured
- ClickUp Team ID available
Quick Self-Check:
- I've verified my Node.js version meets requirements
- I've tried clearing npm cache:
npm cache clean --force - I've checked the configuration matches the README examples
Description
I started to face the error:
"error": "Authorization failed. Please check your API key and permissions."
I tried to investigate what caused it as the api key is vaild, and found out that -
Number of API requests for the "get description and comments for task 0.3.1" command:
Stage 1: Task Search
1. 1 request - getWorkspaceHierarchy() (get workspace structure)
2. ~10-50 requests - getWorkspaceTasks() for each list in the workspace
3. 1 request - getTask(taskId) when the task is found
Stage 2: Getting Details
4. 1 request - getSubtasks(taskId) to get subtasks
5. 1 request - getTaskComments(taskId) to get comments
6. N requests - for each subtask: getTask() + getTaskComments()
TOTAL: 15-60+ requests per command!
The getWorkspaceTasks method makes requests to EVERY list in the workspace.
The main problem is redundant API requests.
The system uses the /team/{teamId}/task endpoint, which retrieves tasks from the entire workspace, not individual lists.
However, the problem is that searching by name still requires multiple requests.
Just to let you know this..
Additional Information
The easiest way is of course is to implement any variations of simple cache, but your code of conduct is very boring to make pull request, i just make fork)
Metadata
Metadata
Assignees
Labels
No labels