Skip to content

No generation of Graph and Solar Table in Dashboard_1 #354

Description

@SakshamMawari

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

  1. Start the API: docker build -t quartz-solar-forecast . && docker run -p 8000:8000 quartz-solar-forecast or locally as guided in README.md
  2. Start the frontend: cd dashboards/dashboard_1 && npm install && npm run dev
  3. Open http://localhost:5137, enter site details, click Predict
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions