🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

[Bug][UI - Projects page] Projects page shows infinite loading when project isn't found #8539

Closed

Description

@veetmoradiya3628

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

If backend API for project information gives 404 still loader is keep on showing in UI

Refer to recording below
https://drive.google.com/file/d/17Mhc_SdkN_U-2RfxRzJzWvtkL1jGSzds/view?usp=sharing

What do you expect to happen

If project is not found and gives 404, UI to handle the error message and redirect to list of projects.

How to reproduce

Steps :-
Go to the projects page.
Attempt to change the name of a project that isn't provisioned.
Observe the resulting error.

Anything else

I would like to contribute to this issue.

Version

devlake:v1.0.2-beta8

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    type/bug
    on Aug 14, 2025
  2. added
    component/config-ui
    severity/p1
    on Aug 14, 2025
  3. dosubot commented on Aug 14, 2025

    @dosubot

    You’re right about the root cause: the Projects page fetches project data in config-ui/src/routes/project/detail/index.tsx using the useRefreshData hook and API.project.get(pname). Right now, it only checks if data is loaded and shows a spinner if not, but doesn’t handle API errors like 404s—so the loader never stops if the project isn’t found.

    To fix this, you’ll want to update the component to check for an error state from useRefreshData. If the error is a 404, you can show a user-friendly message or redirect to the projects list. The API call itself is defined in config-ui/src/api/project/index.ts.

    If you need help with the error handling logic or want to see examples from elsewhere in the codebase, let me know!

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about incubator-devlake Share Dosu with your team

  4. klesh commented on Aug 22, 2025

    @klesh
    Contributor

    Good catch. Looking forward to your PR.
    Would you like to join us and become an Apache Committer of the project?
    Please DM me (Klesh Wong) on Slack if you are interested?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/config-uiseverity/p1type/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions