Skip to content

Profile and Card pages show "Not Found" for network/server errors #603

Description

@IshitaMittal29

🐞 Describe the Bug

When the backend is unavailable, the Profile and Card pages show "Profile not found" and "Card not found" even though the requested profile/card may still exist.

For example, if the backend server is not running and I visit /u/test or /devcard/test, the browser console shows ERR_CONNECTION_REFUSED, but the UI still displays a "not found" message.

The issue is not that the request fails when the backend is down. The issue is that all API failures are treated as "not found" responses, making it impossible to distinguish between an actual 404 and a network/server error.

Steps to reproduce:

  1. Run the web app with the backend unavailable.
  2. Visit /u/test or /devcard/test.
  3. Observe the UI and browser console.

Expected behavior:
A network/server error should show a more appropriate message (e.g. unable to load profile/card) and reserve "not found" only for genuine 404 responses.

Actual behavior:
All failures are displayed as "Profile not found" or "Card not found".

Environment

  • OS: Windows 11
  • Browser: Brave

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions