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

Error "Request failed with status code 500" is displayed if we click on Dependents for the user #6128

Closed
FaharAbbasRizvi opened this issue Apr 13, 2023 · 3 comments
Assignees
Milestone

Comments

@FaharAbbasRizvi
Copy link
Contributor

Error "Request failed with status code 500" is displayed if we click on Dependents for the user

To Reproduce

Steps to reproduce the behavior:

  1. Click on Dependents
  2. Go to Login and Users
  3. Click on postgres user
  4. See the error "Request failed with status code 500"

Expected behavior

No Error Message is displayed if the user clicks on Dependents

Screen Shot 2023-04-13 at 3 03 31 PM

Screenshots

  • OS: [All]
  • Version: [7.0]
  • Mode: [All]
  • Package type: [All]
@adityatoshniwal
Copy link
Contributor

@FaharAbbasRizvi Isn't this same as #6093 which you marked as resolved?

@FaharAbbasRizvi
Copy link
Contributor Author

Please note that this is only specific to EPAS/PG 15

Here is the View log information:
dispatch_request
return method(*args, **kwargs)
File "C:\Users\faharabbas\AppData\Local\Programs\pgAdmin 4\v7\web\pgadmin\browser\server_groups\servers\roles_init_.py", line 700, in wrapped
return f(self, **kwargs)
File "C:\Users\faharabbas\AppData\Local\Programs\pgAdmin 4\v7\web\pgadmin\browser\server_groups\servers\roles_init_.py", line 1069, in dependents
dependents_result = self.get_dependents(self.conn, sid, rid)
File "C:\Users\faharabbas\AppData\Local\Programs\pgAdmin 4\v7\web\pgadmin\browser\server_groups\servers\roles_init_.py", line 1220, in get_dependents
self.temp_connection_check(rid, temp_conn, db_row, types,
File "C:\Users\faharabbas\AppData\Local\Programs\pgAdmin 4\v7\web\pgadmin\browser\server_groups\servers\roles_init
.py", line 1135, in _temp_connection_check
RoleView.handle_dependents_data(result, types, dependents, db_row)
File "C:\Users\faharabbas\AppData\Local\Programs\pgAdmin 4\v7\web\pgadmin\browser\server_groups\servers\roles_init
.py", line 1091, in _handle_dependents_data
for row in result['rows']:
TypeError: string indices must be integers

@FaharAbbasRizvi
Copy link
Contributor Author

This is fixed in the latest snapshot build:
https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2023-04-25/

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

No branches or pull requests

3 participants