You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Nagarajkalasagonda (via GitHub)" <gi...@apache.org> on 2025/06/25 10:05:40 UTC

Re: [D] /api/v1/security/roles/ isn't listing all existing roles [superset]

GitHub user Nagarajkalasagonda added a comment to the discussion: /api/v1/security/roles/ isn't listing all existing roles

I tried the approach suggested but i getting below errror


Attempting to fetch all roles using /api/v1/security/roles/...
API request failed for https://superset.xx.com/api/v1/security/roles/ (GET). Status: 404, Response: {"errors": [{"message": "404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}
Failed to fetch roles from /api/v1/security/roles/ (page 0): 404 Client Error: NOT FOUND for url: https://superset.xx.com/api/v1/security/roles/?q=%7B%22page%22%3A+0%2C+%22page_size%22%3A+100%7D. Please ensure the endpoint is accessible and the authenticated user has permissions.
Traceback (most recent call last):
  File "/tmp/ipykernel_804/3441998227.py", line 142, in list_roles
    response = self._make_request("GET", roles_endpoint, params={"q": params_q}, timeout=10)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/ipykernel_804/3441998227.py", line 76, in _make_request
    response.raise_for_status()
  File "/opt/conda/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: NOT FOUND for url: https://superset.xx.com/api/v1/security/roles/?q=%7B%22page%22%3A+0%2C+%22page_size%22%3A+100%7D
Failed to list roles due to an API error. Please check permissions, network, or Superset version/configuration.

GitHub link: https://github.com/apache/superset/discussions/29474#discussioncomment-13572010

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org