Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: /list_projects API returns inconsistent response when no projects are found #5010

Open
ayush3160 opened this issue Jan 2, 2025 · 0 comments · May be fixed by #5011
Open

bug: /list_projects API returns inconsistent response when no projects are found #5010

ayush3160 opened this issue Jan 2, 2025 · 0 comments · May be fixed by #5011
Labels

Comments

@ayush3160
Copy link

What happened:

When making GET request to /list_projects of auth server incase of no projects it gives response like this

{
    "message": "No projects found"
}{
    "data": {
        "projects": [],
        "totalNumberOfProjects": 0
    }
}

What you expected to happen:

Incase of no projects it can only return a message field

{
    "message": "No projects found"
}

Where can this issue be corrected? (optional)

It's happening because there is no return statement here

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

@ayush3160 ayush3160 added the bug label Jan 2, 2025
@ayush3160 ayush3160 linked a pull request Jan 2, 2025 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant