Describe the bug
The dashboard frontend returns a 422 Unprocessable Entity when clicking Predict. The request body format and response parsing in PVForecastForm.tsx don't match the current API contract and the graph,table was not generated
To Reproduce
- Start the API:
docker build -t quartz-solar-forecast . && docker run -p 8000:8000 quartz-solar-forecast or locally as guided in README.md
- Start the frontend:
cd dashboards/dashboard_1 && npm install && npm run dev
- Open
http://localhost:5137, enter site details, click Predict
- See 422 error in browser console; chart and table don't render
Expected behavior
Clicking Predict should return forecast data and render the chart and prediction table.
Describe the bug
The dashboard frontend returns a 422 Unprocessable Entity when clicking Predict. The request body format and response parsing in
PVForecastForm.tsxdon't match the current API contract and the graph,table was not generatedTo Reproduce
docker build -t quartz-solar-forecast . && docker run -p 8000:8000 quartz-solar-forecastor locally as guided in README.mdcd dashboards/dashboard_1 && npm install && npm run devhttp://localhost:5137, enter site details, click PredictExpected behavior
Clicking Predict should return forecast data and render the chart and prediction table.