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.


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.


Else download the file from: and install it.

Thank you!


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

Share this blog:

Leave a Reply

1 Comment on "An Error Occurred While Handling json requests python"

Notify of

Sort by:   newest | oldest | most voted
Danyel Mosson
Danyel Mosson
3 years 5 months ago

Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. It extremely helps make reading your blog significantly easier.


Contact Us

Related Categories

Recent Posts

Email *