-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Task-master fails to parse PRD with gemini-cli provider, throwing an error: config?.getUsageStatisticsEnabled is not a function
Steps to Reproduce
task-master parse-prd --input=.taskmaster/docs/prd.txt
Expected Behavior
It should successfully parse PRD either via MCP tool or via CLI
Actual Behavior
config?.getUsageStatisticsEnabled is not a function
Screenshots or Logs
`task-master parse-prd --input=.taskmaster/docs/prd.txt
_____ _ __ __ _
|_ _|_ _ ___| | __ | \/ | __ _ ___| |_ ___ _ __
| |/ _` / __| |/ / | |\/| |/ _` / __| __/ _ \ '__|
| | (_| \__ \ < | | | | (_| \__ \ || __/ |
|_|\__,_|___/_|\_\ |_| |_|\__,_|___/\__\___|_|
by https://x.com/eyaltoledano
╭───────────────────────────────────────────╮
│ │
│ Version: 0.24.0 Project: Taskmaster │
│ │
╰───────────────────────────────────────────╯
🏷️ tag: master
Parsing PRD file: /home/user/Development/task-master/mcp-fix-01/.taskmaster/docs/prd.txt
Generating 10 tasks...
⠋ Parsing PRD and generating tasks...
[INFO] Parsing PRD file: /home/user/Development/task-master/mcp-fix-01/.taskmaster/docs/prd.txt, Force: false, Append: false, Research: false
[INFO] Tag 'master' is empty or doesn't exist. Creating/updating tag with new tasks.
[INFO] Reading PRD content from /home/user/Development/task-master/mcp-fix-01/.taskmaster/docs/prd.txt
[INFO] ✓ JSON schema validation enabled
[INFO] Calling AI service to generate tasks from PRD...
⠼ Parsing PRD and generating tasks...
⠴ Parsing PRD and generating tasks...
[ERROR] Gemini CLI object generation failed: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function {"error":{"name":"AI_RetryError","reason":"maxRetriesExceeded","errors":[{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}},{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}},{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}}],"lastError":{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}}}}
[WARN] Attempt 1 failed for role main (generateObject / gemini-cli): Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
[ERROR] Something went wrong on the provider side. Max retries reached for role main (generateObject / gemini-cli).
[ERROR] Service call failed for role main (Provider: gemini-cli, Model: gemini-2.5-pro): Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
⠧ Parsing PRD and generating tasks...
[ERROR] Gemini CLI object generation failed: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function {"error":{"name":"AI_RetryError","reason":"maxRetriesExceeded","errors":[{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}},{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}},{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}}],"lastError":{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}}}}
[WARN] Attempt 1 failed for role fallback (generateObject / gemini-cli): Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
[ERROR] Something went wrong on the provider side. Max retries reached for role fallback (generateObject / gemini-cli).
[ERROR] Service call failed for role fallback (Provider: gemini-cli, Model: gemini-2.5-flash): Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
⠋ Parsing PRD and generating tasks...
[ERROR] Gemini CLI object generation failed: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function {"error":{"name":"AI_RetryError","reason":"maxRetriesExceeded","errors":[{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}},{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}},{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}}],"lastError":{"name":"AI_APICallError","cause":{},"url":"gemini-cli-core","requestBodyValues":{},"statusCode":500,"responseHeaders":{},"isRetryable":true,"data":{}}}}
[WARN] Attempt 1 failed for role research (generateObject / gemini-cli): Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
[ERROR] Something went wrong on the provider side. Max retries reached for role research (generateObject / gemini-cli).
[ERROR] Service call failed for role research (Provider: gemini-cli, Model: gemini-2.5-pro): Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
[ERROR] All roles in the sequence [main, fallback, research] failed.
[ERROR] Error parsing PRD: Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function
✖ Error parsing PRD: Gemini CLI API error during object generation: Failed after 3 attempts. Last error: config?.getUsageStatisticsEnabled is not a function`
Environment
- Task Master version: 0.24.0, (0.25.0 does not throw errors, just hangs and does nothing). Tried to rollback to 0.23.0, also didn't help
- Node.js version: v20.19.4
- Operating system: Ubuntu 24.04
- IDE (if applicable): not applicable
- gemin-cli version: 0.1.22, also tried 0.11.1
Additional Context
This started happening after I've updated task-master to latest version. Further downgrades did not help; full wipe of nodejs from system did not help either.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Done