Skip to content

ErrorBoundary not rendering on account_.authorize.jsx #2644

Open
@AlvaroRocket

Description

What is the location of your example repository?

https://github.com/RocketROI/holafly-hydrogen (private repo)

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2024.10.0

What version of Remix are you using?

2.13.1

Steps to Reproduce

The issue is not so much that there is an error on login, that is something that can happends, but:

Our client tries to login using the Customer Account API. The email got stuck in its firewall and after allowing it and trying to login, it fires a Bad request: Unauthorized error.

Another way to reproduce it is to simply navigate to /account/authorize

Trying on with the based Hydrogen project from the cli I can also reproduce it without credentials, getting:

You do not have the valid credential to use Customer Account API (/account).

Expected Behavior

We should expect to render the ErrorBoundary component at root.jsx to display the user that something went wrong and give him the option to exercise some actions.

Image

Actual Behavior

Instead of the ErrorBoundary, we get:

We should be able to have some control over the route to at least redirect the user or displaying some information.

Image
Image

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSEV-4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions