Re: [pgadmin-support] UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 0: invalid start byte

Поиск
Список
Период
Сортировка
От Lazaro Garcia
Тема Re: [pgadmin-support] UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 0: invalid start byte
Дата
Msg-id 002501d2b857$d9c4bae0$8d4e30a0$@gmail.com
обсуждение исходный текст
Ответ на Re: [pgadmin-support] UnicodeDecodeError: 'utf8' codec can't decodebyte 0xc1 in position 0: invalid start byte  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
Список pgadmin-support

Pgadmin4-1.4

Ubuntu 16.04

PostgreSQL 9.6.2

Pgadmin is runing in web mode with apache.

 

After installing the python's libraries ( requirements.txt ) with the packages versions specified, the error disappeared.

 

Regards.

 

 

De: Murtuza Zabuawala [mailto:murtuza.zabuawala@enterprisedb.com]
Enviado el: martes, 18 de abril de 2017 01:38 a. m.
Para: Lazaro Garcia
CC: pgAdmin Support
Asunto: Re: [pgadmin-support] UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 0: invalid start byte

 

This error means that your username/password contains non-ascii characters which pgAdmin4 not able to encode/decode.

 

Could you provide steps to re-produce this issue and also information like pgAdmin4 version, OS version, Postgres version, are you running pgAdmin4 in Desktop mode or Web mode ?

 

 


--

Regards,

Murtuza Zabuawala
EnterpriseDB: 
http://www.enterprisedb.com
The Enterprise PostgreSQL Company

 

On Tue, Apr 18, 2017 at 2:36 AM, Lazaro Garcia <lazaro3487@gmail.com> wrote:

Hello everyone, what this error means?

 

Regards.

 

[Mon Apr 17 16:55:02.106778 2017] [wsgi:error] [pid 53356] Traceback (most recent call last):

[Mon Apr 17 16:55:02.106782 2017] [wsgi:error] [pid 53356]   File "/var/www/vhost/pgadmin4/web/pgadmin/utils/driver/psycopg2/__init__.py", line 279, in connect

[Mon Apr 17 16:55:02.106785 2017] [wsgi:error] [pid 53356]     password = password.decode('utf-8').encode('utf-8')

[Mon Apr 17 16:55:02.106787 2017] [wsgi:error] [pid 53356]   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode

[Mon Apr 17 16:55:02.106790 2017] [wsgi:error] [pid 53356]     return codecs.utf_8_decode(input, errors, True)

[Mon Apr 17 16:55:02.106793 2017] [wsgi:error] [pid 53356] UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 0: invalid start byte

 

В списке pgadmin-support по дате отправления:

Предыдущее
От: "Lazaro Garcia"
Дата:
Сообщение: [pgadmin-support] Is there any way to close the pgadmin session after any time?
Следующее
От: "Campbell, Lance"
Дата:
Сообщение: [pgadmin-support] pgadmin4-1.4