OpenERP client error “Unexpected end of JSON Input” when printing the purchase order

How to resolve “Unexpected end of JSON Input” when printing the purchase order

 The issue is caused by the difference in the version of python lib werkzeug version. OpenERP currently use version 0.8.3. Below is the error message which will be displayed if the there is a difference in version.


Unexpected end of JSON Input


Steps

Check werkzeug version by running below command.

pip show werkzeug|grep Version

If the version displayed is different than 0.8.3 then follow the below steps.

  • Stop OpenERP service
sudo service openerp stop


  • Downgrade the version using the command
sudo pip install werkzeug==0.8.3


  • Verify the version after downgrade. It should point to 0.8.3


pip show werkzeug|grep Version


  • Start OpenERP service
sudo service openerp start







The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)