Skip to content

Verify: The captures hang when an error happens. #936

Open

Description

@SuspenseFallback

When submitting some invalid filters in the Verify, the page hangs on a spinner:

Screenshot 2022-11-14 at 1 43 51 PM

Submitting an invalid Grower Account Id results in an error 422:

Screenshot 2022-11-14 at 1 46 16 PM

Submitting an invalid Capture Reference ID results in an error 500:

Screenshot 2022-11-14 at 1 45 05 PM

Activity

  1. nmcharlton commented on Nov 14, 2022

    @nmcharlton
    Collaborator

    For info, there's an open issue to properly handle all errors from the APIs in the frontend: #473

  2. added
    type: bugSomething isn't working
    tool: VerifyRelates to the capture verification tool (Verify page)
    HackathonFebruary 2023 Hackathon Material
    on Feb 24, 2023
  3. moved this from Todo to In Progress in Hackathon !!! OCT 2023on Aug 13, 2023
  4. harshgupta6789 commented on Jun 26, 2026

    @harshgupta6789

    Hi, I’d like to work on this issue. I found that loadCaptureImages does not reset isLoading when getCaptureImages throws, so I plan to wrap it in try/catch/finally and clear the spinner on API errors. Can you assign this to me?

    Even though new filters have been added, the original issue still exists. When I enter an invalid number such as alphanumeric characters in Capture ID and Grower ID, I get 500 server error from the backend, and the spinner is stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

HackathonFebruary 2023 Hackathon Materialhacktoberfesttool: VerifyRelates to the capture verification tool (Verify page)type: bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions