Error on Frappe API call (Value Error: No JSON object could be decoded)


I am getting the following error while calling the simple get method in latest ERPNext.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 59, in application
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 119, in init_request
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 127, in make_form_dict
args = json.loads(
File “/usr/lib/python2.7/json/”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/”, line 382, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded

Is there any problem in inbuild frappe file?
Any help is welcome

Are you running a VM?

The same problem, but in a VM environment Latest - ERPNext-Production.ova - Error: No JSON object could be decoded


Encountering the same issue when trying to save a doctype that was populated by calling a custom method (mapping fields from another doc)

Any solution please?

Kind regards

Hi @Riteah

Did you find a solution to this?

Kind regards,

Okay, so I got around this after doing the following:

  1. Ensuring the json file for my custom doctype was created in the repository (custom app) by enabling developer mode and being careful to only edit the custom doctypes in the custom app before disabling developer mode

  2. Updating bench


1 Like