Re: Error while connecting server on pgAdmin4 (KeyError: 'version')

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Mishika Singh <mishikaps(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Error while connecting server on pgAdmin4 (KeyError: 'version')
Date: 2020-05-05 07:10:53
Message-ID: CAFOhELe8HyN=LNbkaJKJY88nsjcQNOkRXLskbobsdyjqPLmx4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Tue, May 5, 2020 at 12:33 PM Mishika Singh <mishikaps(at)gmail(dot)com> wrote:

> I have cloned the pgAdmin4 project, while trying to connect to the server
> on pgAdmin4, I am getting following error in the logs:
>
> KeyError: 'version'
> 2020-05-01 13:04:19,608: ERROR flask.app: 'version'
> Traceback (most recent call last):
> File "/pgadmin4/web/pgadmin/browser/server_groups/servers/_init_.py", line 828, in create
> server_types=ServerType.types()
> File "/pgadmin4/web/pgadmin/utils/driver/psycopg2/connection.py", line 373, in connect
> raise e
> File "/pgadmin4/web/pgadmin/utils/driver/psycopg2/connection.py", line 366, in connect
> status, msg = self._initialize(conn_id, **kwargs)
> File "/pgadmin4/web/pgadmin/utils/driver/psycopg2/connection.py", line 489, in _initialize
> manager.ver = row['version']
> KeyError: 'version'
>
>
> Which PostgreSQL version are you trying to connect?

> --
> Regards
> Mishika Singh
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-05-05 10:28:10 Re: [pgAdmin 4 - Housekeeping #5255] Implement Selenium Grid using multi-threading & solenoid using current test framework
Previous Message Mishika Singh 2020-05-05 07:02:40 Error while connecting server on pgAdmin4 (KeyError: 'version')