Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SuspenseFallback opened this issue Oct 17, 2023 · 5 comments

Comments

@SuspenseFallback
Copy link
Contributor

SuspenseFallback commented Oct 17, 2023

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 SuspenseFallback changed the title Stakeholders doesn't load Stakeholders and Growers don load Oct 18, 2023
@SuspenseFallback SuspenseFallback changed the title Stakeholders and Growers don load Stakeholders and Growers don't load Oct 18, 2023
@SuspenseFallback
Copy link
Contributor Author

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

Screenshot 2023-10-18 at 9 31 13 AM

@SuspenseFallback
Copy link
Contributor Author

Can I work on this?

@SuspenseFallback
Copy link
Contributor Author

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
Copy link
Contributor Author

Issue in the API: Greenstand/treetracker-query-api#362

@SuspenseFallback SuspenseFallback changed the title Stakeholders and Growers don't load Error 422 - Unprocessable Entity occurs for multiple pages with some not loading Oct 18, 2023
@SuspenseFallback
Copy link
Contributor Author

A PR has been opened for the error handling here and for the issue in the API - Greenstand/treetracker-query-api#363

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant