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

bug: a single erroneous process crashes fetching an election list #179

Closed
elboletaire opened this issue May 24, 2023 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@elboletaire
Copy link
Member

elboletaire commented May 24, 2023

Describe the bug

An organization containing an erroneous process cannot retrieve its election list, getting an Invariant failed error.

In some scenarios this error shows as Invariant failed: Census identifier is missing or invalid.

To Reproduce

Under the dev environment you can check this org: 0x4c0365ffe55e3239273af8508265aed2d3d0a906 which has been created reproducing the issue.

Anyway, here's the full process to recreate the issue:

  • Having an organization created
  • Have some valid elections (so you can check it does not return anything later)
  • Manually create an election without a census
  • Try to fetch the organization elections, in the catch method you'll get the invariant failed error.

Current behavior

No elections are retrieved at all and an error is thrown

Expected behavior

To get the list with all elections, even erroneous ones (these should probably come with the missing or erroneous fields).

@elboletaire elboletaire added the bug Something isn't working label May 24, 2023
@elboletaire elboletaire changed the title bug: a single erroneous process crashes fetching an election list from an organization bug: a single erroneous process crashes fetching an election list May 24, 2023
marcvelmer added a commit that referenced this issue Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant