Skip to content

Frontend app returns only 200 code even an error happens when doing a transaction. #2144

@amandakarina

Description

@amandakarina

Describe the bug

When creating an E2E tests , when sending an invalid value or if some service is out, we still receive code 200.

To Reproduce

  1. Create a POST request to service payment or deposit with an invalid value (-1000, for example)
  2. The response will be 200 ok code even a error message is logged.
  3. Because of redirect to home, even when we add error code on redirect, home does not propagate the error.

Logs

The frontend app will log the error but is does not return the code.

Screenshots

Environment

Additional context

This error was found when adding an E2E tests on terraform-google-enterprise-application repo. It was workarounded checking the HTML return of home.

Exposure

Persistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions