django-oscar / django-oscar-paypal

PayPal integration for django-oscar. Can be used without Oscar too.

Home Page:https://django-oscar-paypal.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect String value

smartysms opened this issue · comments

After redirecting from payment gateway i got this error.

Screenshot from 2020-12-04 22-49-37

Internal Server Error: /^checkout/paypal/place-order/35/
Traceback (most recent call last):
File "/home/shoaib/Desktop/workspace/meenu_project/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/home/shoaib/Desktop/workspace/meenu_project/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 71, in execute
return self.cursor.execute(query, args)
File "/home/shoaib/Desktop/workspace/meenu_project/lib/python3.6/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/home/shoaib/Desktop/workspace/meenu_project/lib/python3.6/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/home/shoaib/Desktop/workspace/meenu_project/lib/python3.6/site-packages/MySQLdb/connections.py", line 259, in query
_mysql.connection.query(self, query)
MySQLdb._exceptions.OperationalError: (1366, "Incorrect string value: '\xE2\x82\xB922....' for column 'body_text' at row 1")

The above exception was the direct cause of the following exception:

Hi there. We use Github only for managing bugs and feature requests, and not for support. We recommend that you ask for help on Stack Overflow using the django-oscar tag, or the mailing list and asking a question there. The error seems to be generated when writing the body_text of the email that is sent for the order - you need to investigate what is in that content to figure out why it's causing an error.