Re: pgadmin4 server error message processing

From: Ioseph Kim <pgsql-kr(at)postgresql(dot)kr>
To: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
Cc: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgadmin4 server error message processing
Date: 2018-01-16 01:23:42
Message-ID: 9731dbec-8707-160a-9a5b-c27cb8c78f3c@postgresql.kr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

This bug was not fixed still,

  File
"/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/utils/driver/psycopg2/__init__.py",
line 1541, in _formatted_exception_msg
    self.decode_to_utf8(exception_obj.diag.message_primary)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0:
ordinal not in range(128)

This rpm is pgadmin4-v2-2.1-1.rhel7.x86_64.

Reguards, Ioseph.

2017년 12월 27일 13:41에 Murtuza Zabuawala 이(가) 쓴 글:
> Hi,
>
> Similar issue was already reported by other users,
> https://redmine.postgresql.org/issues/2806
> https://redmine.postgresql.org/issues/2821
>
> We have recently fixed it and fix should be available in next pgAdmin4
> release.
>
> Thanks,
> Murtuza
>
> On Wed, Dec 27, 2017 at 9:34 AM, Ioseph Kim <pgsql-kr(at)postgresql(dot)kr
> <mailto:pgsql-kr(at)postgresql(dot)kr>> wrote:
>
> Hi,
>
> when server message is not english (my server is korean),
>
> pgadmin4 make a error bellow.
>
>
>   File
> "/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/utils/driver/psycopg2/__init__.py",
> line 1612, in _formatted_exception_msg
>     self.decode_to_utf8(exception_obj.diag.message_primary)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in
> position 0: ordinal not in range(128)
>
>
> This pgadmin4 is pgadmin4-v2-2.0-1.rhel7.x86_64.rpm package on
> CentOS7.
>
> It may be a problem utf8 encoding string processing of python 2.7.
>
>
> I sugesst , if server message is non english, decoding to utf8 is
> skiped.
>
>
>
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Fahar Abbas 2018-01-16 05:40:07 Re: ESLINT: On pgAdmin static javascripts
Previous Message Dave Page 2018-01-15 17:39:11 Re: RM2815: Relogin to pgAdmin from sqleditor/datadrid if session exprires