Greenstand / treetracker-admin-client

The Admin Panel is the part of the Treetracker project for verifying, processing and managing data collected by the Treetracker app
GNU Affero General Public License v3.0
33 stars 193 forks source link

Error 422 - Unprocessable Entity occurs for multiple pages with some not loading #1120

Open SuspenseFallback opened 1 year ago

SuspenseFallback commented 1 year ago
Screenshot 2023-10-17 at 2 54 36 PM

This error occurs in the following pages for organisation_id:

  1. Growers (doesn't load)
  2. Stakeholders (doesn't load)
  3. Capture Matching (says all records have been wiped?)
  4. Earnings
  5. Payments
  6. Captures
SuspenseFallback commented 1 year ago

It also occurs for the growers page with the same 422 error:

Screenshot 2023-10-18 at 9 31 13 AM
SuspenseFallback commented 1 year ago

Can I work on this?

SuspenseFallback commented 1 year ago

OK, so the error is occurring because the filter gives the organization_id as a list of organizations, which cannot be processed by the API.

Screenshot 2023-10-18 at 10 39 31 AM
SuspenseFallback commented 1 year ago

Issue in the API: https://github.com/Greenstand/treetracker-query-api/issues/362

SuspenseFallback commented 1 year ago

A PR has been opened for the error handling here and for the issue in the API - https://github.com/Greenstand/treetracker-query-api/pull/363