Re: pgadmin4 server error message processing

From: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
To: Ioseph Kim <pgsql-kr(at)postgresql(dot)kr>
Cc: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgadmin4 server error message processing
Date: 2017-12-27 04:41:55
Message-ID: CAKKotZTcR6q0bsQpA_EEZ5Y5acySXQOtvP=jGGW8YBWmWXRHHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

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> 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

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Murtuza Zabuawala 2017-12-27 12:31:16 [pgAdmin4][Patch]: Clear the content of message tab properly
Previous Message Ioseph Kim 2017-12-27 04:04:32 pgadmin4 server error message processing