Issue: task-master parse-prd sending raw binary .docx content to API instead of extracted text
Command run:
bashtask-master parse-prd Strategyn_Scraper_PRD.docx
Two bugs observed:
Wrong file parsing — Instead of extracting text from the .docx, task-master sent the raw binary ZIP/XML content of the file directly to the Anthropic API as the PRD text (visible in the error log as PK\u0003\u0004... — that's a ZIP file header).
Invalid API key error — The API calls returned 401 authentication_error: invalid x-api-key, yet the task generation still "succeeded" and produced 11 tasks — meaning it either used a fallback or the tasks were generated incorrectly without actual PRD content.
Expected behavior: task-master should extract readable text from the .docx before sending it to the API.
Questions:
How do I correctly point task-master at a specific PRD file path?
Is there a flag to pre-convert the .docx to text, or does task-master need a .txt/.md file instead?
Why did it report success ("11 tasks generated") despite API auth failures?
==========================================================================
Full error output - (https://www.notion.so/Taskmaster-claude-code-bug-314e1e4197fb8032b9f3f731f2a0b1cd?source=copy_link)
Issue: task-master parse-prd sending raw binary .docx content to API instead of extracted text
Command run:
bashtask-master parse-prd Strategyn_Scraper_PRD.docx
Two bugs observed:
Wrong file parsing — Instead of extracting text from the .docx, task-master sent the raw binary ZIP/XML content of the file directly to the Anthropic API as the PRD text (visible in the error log as PK\u0003\u0004... — that's a ZIP file header).
Invalid API key error — The API calls returned 401 authentication_error: invalid x-api-key, yet the task generation still "succeeded" and produced 11 tasks — meaning it either used a fallback or the tasks were generated incorrectly without actual PRD content.
Expected behavior: task-master should extract readable text from the .docx before sending it to the API.
Questions:
How do I correctly point task-master at a specific PRD file path?
Is there a flag to pre-convert the .docx to text, or does task-master need a .txt/.md file instead?
Why did it report success ("11 tasks generated") despite API auth failures?
==========================================================================
Full error output - (https://www.notion.so/Taskmaster-claude-code-bug-314e1e4197fb8032b9f3f731f2a0b1cd?source=copy_link)