-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
P1-high-betaHigh priority - should fix before beta for best experienceHigh priority - should fix before beta for best experiencebugSomething isn't workingSomething isn't workingux
Description
When the user is on the dashboard of a project that has already gone through Discovery and have a PRD, clicking the Restart Discovery button doesn't do anything. The screen refreshes sending an API call to the server, but it returns with a 400 error and no edits on the screen.
Console:
error_handler.js:1 Failed to restart discovery:
Y
501-0fb0225c0fce04a0.js:1
POST https://api.dev.codeframeapp.com/api/projects/2/discovery/restart 400 (Bad Request)
error_handler.js:1 Failed to restart discovery:
Y {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
code
:
"ERR_BAD_REQUEST"
config
:
{transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}
message
:
"Request failed with status code 400"
name
:
"AxiosError"
request
:
XMLHttpRequest
onabort
:
ƒ ()
onerror
:
ƒ (t)
onload
:
null
onloadend
:
ƒ g()
onloadstart
:
null
onprogress
:
null
onreadystatechange
:
null
ontimeout
:
ƒ ()
readyState
:
4
response
:
"{\"detail\":\"Cannot restart discovery in active phase. Discovery can only be restarted during the discovery phase.\"}"
responseText
:
"{\"detail\":\"Cannot restart discovery in active phase. Discovery can only be restarted during the discovery phase.\"}"
responseType
:
""
responseURL
:
"https://api.dev.codeframeapp.com/api/projects/2/discovery/restart"
responseXML
:
null
status
:
400
statusText
:
""
timeout
:
0
upload
:
XMLHttpRequestUpload {onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, …}
withCredentials
:
false
[[Prototype]]
:
XMLHttpRequest
response
:
{data: {…}, status: 400, statusText: '', headers: ej, config: {…}, …}
status
:
400
stack
:
"AxiosError: Request failed with status code 400\n at eN (https://dev.codeframeapp.com/_next/static/chunks/501-0fb0225c0fce04a0.js:1:43191)\n at XMLHttpRequest.g (https://dev.codeframeapp.com/_next/static/chunks/501-0fb0225c0fce04a0.js:1:47640)\n at tl.request (https://dev.codeframeapp.com/_next/static/chunks/501-0fb0225c0fce04a0.js:1:56133)\n at async eC (https://dev.codeframeapp.com/_next/static/chunks/app/projects/%5BprojectId%5D/page-216722d1a669bee6.js:1:32361)"
[[Prototype]]
:
Error
Expected Behavior:
Once the user clicks the Restart Discovery button, there should be a brief confirmation dialogue and the agent re-asks the five discovery questions from the beginning. It restarts the process and erases the old responses and the PRD and generates it from scratch.
coderabbitai
Metadata
Metadata
Assignees
Labels
P1-high-betaHigh priority - should fix before beta for best experienceHigh priority - should fix before beta for best experiencebugSomething isn't workingSomething isn't workingux