Skip to content

Auth Web: Request failed with status code 404 showing up on staff dashboard when searching for businesses that are not found in Business Registry. #30088

Closed

Description

@riyazuddinsyed

Describe the bug in current situation
When the staff searches for a businesses that is not present in Business Registry then "Request failed with status code 404" shows up instead of the message saying business not found.
The error message is not informational.

Steps to reproduce the behavior:

  1. Go to 'https://dev.account.bcregistry.gov.bc.ca/staff/dashboard/active'
  2. Log in as Staff
  3. Search for A0100001
  4. See error

Screenshots/ Visual Reference/ Source
The root message should be shown in the UI
Screen Shot 2025-08-12 at 2.50.34 PM.png

To do:

  • verify that desired response is coming in network response, errorMessage.rootCause.message
  • verify that code is looking at rootCause.message
  • show root cause message instead of generic "request failed" error text

Activity

  1. added
    bug
    Entities Team
    on Aug 12, 2025
  2. changed the title [-]Request failed with status code 404 showing up on staff dashboard when searching for businesses that are not found in BCROS.[/-] [+]Request failed with status code 404 showing up on staff dashboard when searching for businesses that are not found in Business Registry.[/+] on Aug 14, 2025
  3. severinbeauvais commented on Aug 14, 2025

    @severinbeauvais
    Collaborator

    This is the same root cause as 30174 and 30194.

    However, there is an extra request in this ticket -- see description.

  4. changed the title [-]Request failed with status code 404 showing up on staff dashboard when searching for businesses that are not found in Business Registry.[/-] [+]Auth Web: Request failed with status code 404 showing up on staff dashboard when searching for businesses that are not found in Business Registry.[/+] on Aug 26, 2025
  5. severinbeauvais commented on Aug 29, 2025

    @severinbeauvais
    Collaborator

    Test Notes

    1. try searching for A0100001
    2. try searching for BC1234567
    3. try searching for 123456 (filing)
  6. severinbeauvais commented on Sep 2, 2025

    @severinbeauvais
    Collaborator

    @seeker25 Do we need a release for this ticket or can I just push it to Test and ask Riyaz to verify it?

  7. seeker25 commented on Sep 2, 2025

    @seeker25
    Contributor

    Can go ahead and push, it's mostly staff functionality anyways

    I'll create a release in a few

  8. severinbeauvais commented on Sep 2, 2025

    @severinbeauvais
    Collaborator

    Thanks Travis!

    @riyazuddinsyed , this is now in Test for your verification.

  9. self-assigned this
    on Sep 2, 2025
  10. riyazuddinsyed commented on Sep 2, 2025

    @riyazuddinsyed
    ContributorAuthor

    The intent is to show the message in the root cause block, not display it with {} and the Message tag. Moving it back to in progress.

  11. vishnup0422 commented on Sep 2, 2025

    @vishnup0422
    Collaborator

    Hello Riyaz, Can you please confirm the Expected error message
    "No match found for Business Number"

    image.png

  12. severinbeauvais commented on Sep 2, 2025

    @severinbeauvais
    Collaborator

    The intent is to show the message in the root cause block, not display it with {} and the Message tag. Moving it back to in progress.

    I did it this way to support the current and future API Gateway config (which controls this).

    So, currently the API GW config has not been updated and you see the rootCause object with the message in it. Once the API GW config is updated, you will see only the message.

  13. severinbeauvais commented on Sep 4, 2025

    @severinbeauvais
    Collaborator

    When looking up a business from the staff dashboard, calls are made to Legal API and Auth API. Depending on the API responses, the message displayed to the user is either static (from code) or dynamic (from error response).

    In your example above, in Test, the Legal API responded with 404 and the following error object:

    image.png

    Here, a "static" message is displayed (which I think is better than the network response).

    If you tried this same example in Dev, the Legal API would have responded with a 200 and the subsequent Auth API response would be 404 and the following error object:

    image.png

    This is due to different code paths. (It's a bit spaghetti, to be honest.)

    Travis and I thought this was good enough for staff and we should focus our efforts on user issues. What do you think? Is it worth another 3 points of effort to try to untangle this?

    cc: @JohnamLane @OlgaPotiagalova - for your thoughts, please.

  14. severinbeauvais commented on Sep 8, 2025

    @severinbeauvais
    Collaborator

    I have created ticket #30590 to further improve the flow and messages later.

    THIS ticket handled the initial reported issue. Can we move it through the pipelines please?

  15. vishnup0422 commented on Sep 9, 2025

    @vishnup0422
    Collaborator

    QA Validations
    Test env
    image.png
    image.png

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

Metadata

Metadata

Labels

Entities TeamPriority2bugprod defect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions