Обсуждение: [pgadmin-support] UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 0: invalid start byte

Поиск
Список
Период
Сортировка

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

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


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