An Error Occurred While Handling json requests python

You might face this issue while exporting records from Odoo in a CSV.

ERROR: An error occurred while handling a json request
TypeError(‘Expected bytes’)

Don’t Panic. Here is a simple solution.

Solution:

You might be facing this because of the werkzeug version (0.9.4) which is not that stable and might cause the above problem.

To overcome this try downgrading the version to (0.8.3), you can use the following command pip install werkzeug==0.8.3.

OR

Else download the file from:

https://pypi.python.org/pypi/Werkzeug/0.8.3 and install it.

Thank you!

For more assistance or for an Odoo consultation, message us using our enquiry form.