Re: [Django] #35268: Error in Django Migration in PostgreSQL : UnicodeDecodeError during 'python manage.py migrate'

2024-03-04 Thread Django
#35268: Error in Django Migration in PostgreSQL  : UnicodeDecodeError during
'python manage.py migrate'
---+--
 Reporter:  Azim1900   |Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  Uncategorized  |  Version:  5.0
 Severity:  Normal |   Resolution:
 Keywords:  PostgreSQL | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Description changed by Azim1900:

Old description:

> When running the command 'python manage.py migrate' in a Django project,
> a UnicodeDecodeError occurs during the migration process.
>
>  The error trace indicates that the issue is related to decoding a byte
> (0xbb) at position 79, and the problematic code is within the PostgreSQL
> database backend connection setup. The error originates from the
> 'psycopg2' library, and the specific context points to a Unicode decoding
> problem in the 'vectordb_handler.py' file. The error disrupts the
> migration process and prevents the successful execution of the command.
>
> Here is also Database Setting in  my  Django Project :
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql',
> 'NAME': 'Databank',
> 'USER': 'user',
> 'PASSWORD': '123456',
> 'HOST': 'localhost',
> 'PORT': '5432',
> 'OPTIONS': {
> 'client_encoding': 'UTF8',
> }
> }
> }

New description:

 When running the command 'python manage.py migrate' in a Django project, a
 UnicodeDecodeError occurs during the migration process.

  The error trace indicates that the issue is related to decoding a byte
 (0xbb) at position 79, and the problematic code is within the PostgreSQL
 database backend connection setup. The error originates from the
 'psycopg2' library, and the specific context points to a Unicode decoding
 problem in the 'data_handler.py' file. The error disrupts the migration
 process and prevents the successful execution of the command.

 Here is also Database Setting in  my  Django Project :

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.postgresql',
 'NAME': 'Databank',
 'USER': 'user',
 'PASSWORD': '123456',
 'HOST': 'localhost',
 'PORT': '5432',
 'OPTIONS': {
 'client_encoding': 'UTF8',
 }
 }
 }

--
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35268#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e0911f756-5c23f488-f219-41b1-9c8f-394a926aaeff-00%40eu-central-1.amazonses.com.


[Django] #35268: Error in Django Migration in PostgreSQL : UnicodeDecodeError during 'python manage.py migrate'

2024-03-04 Thread Django
#35268: Error in Django Migration in PostgreSQL  : UnicodeDecodeError during
'python manage.py migrate'
-+
   Reporter:  Azim1900   |  Owner:  nobody
   Type:  Uncategorized  | Status:  new
  Component:  Uncategorized  |Version:  5.0
   Severity:  Normal |   Keywords:  PostgreSQL
   Triage Stage:  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+
 When running the command 'python manage.py migrate' in a Django project, a
 UnicodeDecodeError occurs during the migration process.

  The error trace indicates that the issue is related to decoding a byte
 (0xbb) at position 79, and the problematic code is within the PostgreSQL
 database backend connection setup. The error originates from the
 'psycopg2' library, and the specific context points to a Unicode decoding
 problem in the 'vectordb_handler.py' file. The error disrupts the
 migration process and prevents the successful execution of the command.

 Here is also Database Setting in  my  Django Project :

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.postgresql',
 'NAME': 'Databank',
 'USER': 'user',
 'PASSWORD': '123456',
 'HOST': 'localhost',
 'PORT': '5432',
 'OPTIONS': {
 'client_encoding': 'UTF8',
 }
 }
 }
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35268>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e09112cbd-70b50418-91cc-411e-b3ad-78261616f235-00%40eu-central-1.amazonses.com.