claude-task-master icon indicating copy to clipboard operation
claude-task-master copied to clipboard

bug: Failed to parse PRD

Open agileandy opened this issue 6 months ago • 10 comments

Description

Fails to parse PRD

Steps to Reproduce

PRD exists in /specs/design/prd.md initialise taskmaster and ask to parse

Expected Behavior

PRD is parsed and tasks created

Actual Behavior

Error Error executing MCP tool: MCP error -32001: Request timed out

agileandy avatar May 13 '25 14:05 agileandy

PRD can only be in root or in scripts/prd.txt

Its a small case prd.txt not PRD.txt

Crunchyman-ralph avatar May 13 '25 18:05 Crunchyman-ralph

Even with the prd in the scripts directory this is giving the same error... Prd is 87 lines and 1250 tokens.

Image

agileandy avatar May 14 '25 01:05 agileandy

We've had issues with Roo and other tools timing out because they don't have the same rules as Cursor for example.

Re-opening, going to try to do this for 0.15, not 0.14

Crunchyman-ralph avatar May 14 '25 12:05 Crunchyman-ralph

I've been trying to parse my prd for a couple days now. I originally tried with anthropic only via CLI. It kept failing after multiple attempts, I believe it said something about the schema of the response not being correct. On anthropic logs it says that it was a client failure code: 499. I tried MCP multiple times and received the MCP timeout error as stated in this bug. After burning $12 in credits I put some money on Perplexity and tried with that, but it also failed. "Error: Failed to generate object with Perplexity: Failed after 4 attempts. Last error: Cannot connect to API: other side closed. Structured output might not be fully supported."

I believe these are related to this bug, but if not, let me know and I'll open my own ticket. For CLI I uninstalled and reinstalled the latest version 0.13.2. Might be worth noting that I used task-master weeks ago with no issues. I only had issues currently after doing an update. Also using cursor.

nickweibel avatar May 18 '25 14:05 nickweibel

I've been trying to parse my prd for a couple days now. I originally tried with anthropic only via CLI. It kept failing after multiple attempts, I believe it said something about the schema of the response not being correct. On anthropic logs it says that it was a client failure code: 499. I tried MCP multiple times and received the MCP timeout error as stated in this bug. After burning $12 in credits I put some money on Perplexity and tried with that, but it also failed. "Error: Failed to generate object with Perplexity: Failed after 4 attempts. Last error: Cannot connect to API: other side closed. Structured output might not be fully supported."

I believe these are related to this bug, but if not, let me know and I'll open my own ticket. For CLI I uninstalled and reinstalled the latest version 0.13.2. Might be worth noting that I used task-master weeks ago with no issues. I only had issues currently after doing an update. Also using cursor.

Apologies for that, what are you using for a code editor ?

Crunchyman-ralph avatar May 19 '25 12:05 Crunchyman-ralph

I'm using Cursor on the latest version. I've also noticed that anthropic responses are running slower than normal, not sure if that would have any relation to this issue. Let me know if there is anything I can do to help test or try fixes.

nickweibel avatar May 19 '25 18:05 nickweibel

I was having similar problems after upgrading to 0.16 (I had skipped 0.15). Using Sonnet 4 as main TM model with Gemini-2.5-Pro in Cursor. I ran into issues with Task Master parsing the PRD and a recurring issue flagged by the AI was projectRoot argument not working right. My PRD was located in ./scripts/prd.txt, not the project root. I noted in the chat the specific location and asked it to try again and it worked for me.

fraubush avatar Jun 02 '25 17:06 fraubush

Is this still happening?

eyaltoledano avatar Jun 08 '25 20:06 eyaltoledano

Yes, also in roocode on the 0.16.2

L1ghtman2k avatar Jun 09 '25 17:06 L1ghtman2k

@eyaltoledano this is a timeout issue, since we don't use reportProgress, other AI editors other than cursor actually have a small timeout limit, which is getting hit when parsing PRD.

My idea was to bring back the async operation manager just for long running operations like these ones, or using reportProgress

Crunchyman-ralph avatar Jun 09 '25 18:06 Crunchyman-ralph

Is this still happening?

Yep, still occurring

Image

goproslowyo avatar Jun 26 '25 10:06 goproslowyo

Image

1304836815 avatar Jul 13 '25 06:07 1304836815

@joedanz I think your PR #730 will probably resolve this issue, will have to close this issue once the progress PR is released

Crunchyman-ralph avatar Jul 15 '25 11:07 Crunchyman-ralph

Alright, we added streaming, but it tends to break with multiple providers, the best solution here is to increase the timeout in the mcp server: "timeout": 300000

Crunchyman-ralph avatar Sep 01 '25 10:09 Crunchyman-ralph