[pgAdmin4][Patch]: Error while expanding server group node. - Mailing list pgadmin-hackers

From Surinder Kumar
Subject [pgAdmin4][Patch]: Error while expanding server group node.
Date
Msg-id CAM5-9D-Z=hDruYVzrikUBfgp9HXxUxK5=uCvmdkRe-=jROVYbw@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin4][Patch]: Error while expanding server group node.  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
List pgadmin-hackers
Hi

Issue:
Getting following error while expanding server group node.  
File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/browser/server_groups/servers/__init__.py", line 86, in get_nodes
    in_recovery = result['rows'][0]['inrecovery'];
TypeError: string indices must be integers

Not a proper scenario to reproduce it.

Solution:
Add proper check to fix it.


Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Improve layout of regression test format
Next
From: Surinder Kumar
Date:
Subject: Re: Lack of activity indicator over slow connections (pgadmin4)