Skip to content

GET /api/v1/settings/sources – Internal Server Error when invalid column name is passed in query parameters* #110

@sagarkumar-webkul

Description

@sagarkumar-webkul

API Issue Report


Title

GET /api/v1/settings/sources – Internal Server Error when invalid column name is passed in query parameters


Description

When sending a GET request to the /api/v1/settings/sources endpoint with an invalid or non-existent column name (e.g., in filters, sorting, or search), the API returns a 500 Internal Server Error.

Instead, it should return a proper validation error or a 400 Bad Request with a user-friendly message indicating that the column does not exist.


Steps to Reproduce

  1. Send a GET request to /api/v1/settings/sources?sort=invalid_column.
  2. Observe the server returns a 500 Internal Server Error.

Expected Behavior

The API should return a 400 Bad Request with a descriptive message such as:
"Invalid column name 'invalid_column' in sort parameter."


Actual Behavior

Returns a 500 Internal Server Error without a clear explanation.

Image

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sagarkumar-webkul

        Issue actions

          GET /api/v1/settings/sources – Internal Server Error when invalid column name is passed in query parameters* · Issue #110 · krayin/rest-api